text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>Migrated issue, originally created by Sean Mars (<a href="https://github.com/seanmars">@seanmars</a>)</strong></p> <p dir="auto">I get the "TypeError: not enough arguments for format string" when i execute by compiled object with mysql.dialect().</p> <p dir="auto">But when i execute by complied object without mysql.dialect(), it is fine.</p> <p dir="auto">Env:</p> <ul dir="auto"> <li>MySQL 5.6</li> <li>Python 3.5 <ul dir="auto"> <li>PyMySQL==0.7.9</li> <li>SQLAlchemy==1.1.6</li> </ul> </li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine from sqlalchemy import Table, MetaData, text from sqlalchemy.dialects import mysql # The score table just two filed id(vchar(20)), value(int) engine = create_engine('mysql+pymysql://root:root@127.0.0.1/score?charset=utf8mb4') conn = engine.connect() meta = MetaData() table = Table('score', meta, autoload=True, autoload_with=conn) id = 1 value = 100 table.insert().values(id=id, value=value).compile(bind=conn, dialect=mysql.dialect()) conn.execute(ins)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">create_engine</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Table</span>, <span class="pl-v">MetaData</span>, <span class="pl-s1">text</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">dialects</span> <span class="pl-k">import</span> <span class="pl-s1">mysql</span> <span class="pl-c"># The score table just two filed id(vchar(20)), value(int)</span> <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'mysql+pymysql://root:root@127.0.0.1/score?charset=utf8mb4'</span>) <span class="pl-s1">conn</span> <span class="pl-c1">=</span> <span class="pl-s1">engine</span>.<span class="pl-en">connect</span>() <span class="pl-s1">meta</span> <span class="pl-c1">=</span> <span class="pl-v">MetaData</span>() <span class="pl-s1">table</span> <span class="pl-c1">=</span> <span class="pl-v">Table</span>(<span class="pl-s">'score'</span>, <span class="pl-s1">meta</span>, <span class="pl-s1">autoload</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">autoload_with</span><span class="pl-c1">=</span><span class="pl-s1">conn</span>) <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span> <span class="pl-s1">table</span>.<span class="pl-en">insert</span>().<span class="pl-en">values</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-s1">id</span>, <span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-s1">value</span>).<span class="pl-en">compile</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">conn</span>, <span class="pl-s1">dialect</span><span class="pl-c1">=</span><span class="pl-s1">mysql</span>.<span class="pl-en">dialect</span>()) <span class="pl-s1">conn</span>.<span class="pl-en">execute</span>(<span class="pl-s1">ins</span>)</pre></div> <p dir="auto">Error log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/test/db/score.py&quot;, line 33, in insert conn.execute(ins) File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py&quot;, line 945, in execute return meth(self, multiparams, params) File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/sql/compiler.py&quot;, line 227, in _execute_on_connection return connection._execute_compiled(self, multiparams, params) File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py&quot;, line 1075, in _execute_compiled compiled, parameters File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py&quot;, line 1189, in _execute_context context) File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py&quot;, line 1396, in _handle_dbapi_exception util.reraise(*exc_info) File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py&quot;, line 187, in reraise raise value File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py&quot;, line 1182, in _execute_context context) File &quot;/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py&quot;, line 470, in do_execute cursor.execute(statement, parameters) File &quot;/test/venv/lib/python3.5/site-packages/pymysql/cursors.py&quot;, line 164, in execute query = self.mogrify(query, args) File &quot;/test/venv/lib/python3.5/site-packages/pymysql/cursors.py&quot;, line 143, in mogrify query = query % self._escape_args(args, conn) TypeError: not enough arguments for format string"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/test/db/score.py", line 33, in insert conn.execute(ins) File "/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 945, in execute return meth(self, multiparams, params) File "/test/venv/lib/python3.5/site-packages/sqlalchemy/sql/compiler.py", line 227, in _execute_on_connection return connection._execute_compiled(self, multiparams, params) File "/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1075, in _execute_compiled compiled, parameters File "/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context context) File "/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1396, in _handle_dbapi_exception util.reraise(*exc_info) File "/test/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, in reraise raise value File "/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context context) File "/test/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute cursor.execute(statement, parameters) File "/test/venv/lib/python3.5/site-packages/pymysql/cursors.py", line 164, in execute query = self.mogrify(query, args) File "/test/venv/lib/python3.5/site-packages/pymysql/cursors.py", line 143, in mogrify query = query % self._escape_args(args, conn) TypeError: not enough arguments for format string </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">we detect the <code class="notranslate">delete()</code> of one object with the same PK as another which was just <code class="notranslate">add()</code>ed, and convert what would be a DELETE and INSERT into an UPDATE. The main reason for this was that we issue INSERT statements first, then DELETEs, and there was no obvious way to get the unit of work to issue the DELETE first for this one particular record.</p> <p dir="auto">The expected behavior of <code class="notranslate">add()</code> is INSERT. The table may have triggers and other defaults that only trigger on INSERT and not UPDATE. Fields which are undefined on the instance when it is added are expected to be their default values in the DB, which is usually NULL. The current logic takes none of this into account. I'm not sure what the current behavior is for related objects/foreign keys.</p> <p dir="auto">The change here must be that the whole "convert INSERT/DELETE to an UPDATE" must be removed. The unitofwork must issue the DELETE for any row switch object before it issues the INSERTs for that mapper. The most obvious way to do this would be to flip the order of DELETEs and INSERTs wholesale for the UOW. Some experimentation is suggesting that this is much harder than it sounds.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-add-rounded-corners-with-a-border-radius" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-add-rounded-corners-with-a-border-radius</a> has an issue. Please describe how to reproduce it, and include links to screen shots if<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12790960/8038584/50ca7756-0dd2-11e5-905d-25232b5e4d47.png"><img src="https://cloud.githubusercontent.com/assets/12790960/8038584/50ca7756-0dd2-11e5-905d-25232b5e4d47.png" alt="screenshot 5" style="max-width: 100%;"></a><br> possible.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12790960/8042643/9103674e-0dee-11e5-960c-e903e6f9ae2e.png"><img src="https://cloud.githubusercontent.com/assets/12790960/8042643/9103674e-0dee-11e5-960c-e903e6f9ae2e.png" alt="screenshot 9" style="max-width: 100%;"></a><br> Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-add-different-margins-to-each-side-of-an-element" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-add-different-margins-to-each-side-of-an-element</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p>
1
<p dir="auto">We are experiencing an issue (since we upgraded from celery 2.5 to 3.0) where our workers mysteriously stop consuming messages from the Q's they are configured on.</p> <p dir="auto">It happens periodically on each worker node independently, and i cannot get to the root of what is causing it.</p> <p dir="auto"><code class="notranslate">celery inspect -d appserver-i-82df38f8.prod active</code> always returns empty.<br> I did find something slightly interesting, in that, the list of reserved tasks seems to stay static for a long time. Since these tasks do not have an eta set, why don't they execute? I cant think of any reason why they are not being executed?</p> <p dir="auto">Does the reserved Q have any relationship to the prefetch Q? i.e. if there are a lot of reserved tasks which do not execute would that prevent the node from retrieving more tasks from the server?</p> <p dir="auto">When looking at the rabbit MQ management interface I can see this node is listed as a consumer.</p> <p dir="auto">I have collected some info from the node which may shine some light on this, but am at a loss as to why this could happen. Could you provide some pointers for things to look into?</p> <p dir="auto">Worker machine task inspections<br> <a href="https://gist.github.com/declanshanaghy/5103891">https://gist.github.com/declanshanaghy/5103891</a></p> <p dir="auto">Worker machine report<br> <a href="https://gist.github.com/declanshanaghy/5103838">https://gist.github.com/declanshanaghy/5103838</a></p>
<p dir="auto">Hi,</p> <p dir="auto">I'm encountering a strange issue for which I set up a simple test case.<br> I'm using djcelery with RabbitMQ (3.0.4) as broker. Here are the first lines from python manage.py celery report :</p> <p dir="auto">software -&gt; celery:3.0.17 (Chiastic Slide) kombu:2.5.9 py:2.7.3<br> billiard:2.7.3.26 librabbitmq:1.0.1<br> platform -&gt; system:Linux arch:64bit, ELF imp:CPython<br> loader -&gt; djcelery.loaders.DjangoLoader<br> settings -&gt; transport:librabbitmq results:database</p> <p dir="auto">This is the code in the tasks.py module :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import task from celery.task.control import revoke import memcache mc = memcache.Client(['127.0.0.1:11211'], debug=0) @task(name='tasks.homeioTestTask') def testTask(feedUid): print &quot;Within test task for feedUid : %s&quot; % feedUid return @task(name='tasks.homeioProcessEvent') def processEvent(event): print &quot;Got an event from the views&quot; feedUid = event.get('feedUid') print &quot;Event occurred for feed %s&quot; % feedUid # Checking if we have a task id in memcached mcKey = str('taskHomeIoTest_feed_%s' % feedUid) taskId = mc.get(mcKey) if taskId: print &quot;We have a task in the cache, revoke it&quot; revoke(taskId) mc.delete(mcKey) else: print &quot;Scheduling a task&quot; task = testTask.apply_async((feedUid,), countdown=60) mc.set(mcKey,task.id, time=0) return"><pre class="notranslate"><code class="notranslate">from celery import task from celery.task.control import revoke import memcache mc = memcache.Client(['127.0.0.1:11211'], debug=0) @task(name='tasks.homeioTestTask') def testTask(feedUid): print "Within test task for feedUid : %s" % feedUid return @task(name='tasks.homeioProcessEvent') def processEvent(event): print "Got an event from the views" feedUid = event.get('feedUid') print "Event occurred for feed %s" % feedUid # Checking if we have a task id in memcached mcKey = str('taskHomeIoTest_feed_%s' % feedUid) taskId = mc.get(mcKey) if taskId: print "We have a task in the cache, revoke it" revoke(taskId) mc.delete(mcKey) else: print "Scheduling a task" task = testTask.apply_async((feedUid,), countdown=60) mc.set(mcKey,task.id, time=0) return </code></pre></div> <p dir="auto">This code is being called from my views.py file as follows :<br> from tasks import processEvent</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def event(request): event = simplejson.loads(request.raw_post_data) processEvent.delay(event) return HttpResponse(status=200)"><pre class="notranslate"><code class="notranslate">def event(request): event = simplejson.loads(request.raw_post_data) processEvent.delay(event) return HttpResponse(status=200) </code></pre></div> <p dir="auto">When I run celery using python manage.py celery worker --loglevel=debug I get :<br> <a href="https://gist.github.com/franckb/e6e5db51b41b74b3fbce">https://gist.github.com/franckb/e6e5db51b41b74b3fbce</a> (things go wrong around line 257)</p> <p dir="auto">Looks like the tasks don't get to the workers anymore but there is no indication that the workers died or that anything is going wrong.</p> <p dir="auto">I've tried several things when tracking down the issue, but I'm having a hard time knowing where to look. Could anyone provide some guidance ?</p> <p dir="auto">Thanks</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Operating System version: MacOS</li> <li>Java version: JDK1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Quote the <a href="https://github.com/apache/dubbo/issues/5777#event-3081652635" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/5777/hovercard">issue</a> to continue question about <em><strong>Not friendly with the YAML config</strong></em>.</p> <p dir="auto"><strong>You can use any dynamic config center as Dubbo configuration provider( Must be use other format to write your configuration, like YAML, XML, etc... ), them you verify this issue.</strong></p> <p dir="auto">The one of example of about "Not friendly with the YAML config", you can found that code in the class <code class="notranslate">org.apache.dubbo.config.AbstractInterfaceConfig</code>( Version 2.7.4.1 ) , line 303 &amp; 304 .</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Environment.getInstance().updateExternalConfigurationMap(parseProperties(configContent)); Environment.getInstance().updateAppExternalConfigurationMap(parseProperties(appConfigContent));"><pre class="notranslate"><span class="pl-smi">Environment</span>.<span class="pl-en">getInstance</span>().<span class="pl-en">updateExternalConfigurationMap</span>(<span class="pl-en">parseProperties</span>(<span class="pl-s1">configContent</span>)); <span class="pl-smi">Environment</span>.<span class="pl-en">getInstance</span>().<span class="pl-en">updateAppExternalConfigurationMap</span>(<span class="pl-en">parseProperties</span>(<span class="pl-s1">appConfigContent</span>));</pre></div> <p dir="auto">You can not expect everyone have to use "Properties" format to write them configurations, this code can not handling other format like YAML, so that someone use other format like me have to customize own protocol by SPI for handle the configuration parsing process.</p> <p dir="auto">My suggest is, do not write that dead code like "parseProperties".</p> <p dir="auto">Or, also can write a document to teach everyone to handling this situation if someone use other format like me.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Pull all config from remote config center ( like Nacos / Apollo ) and <strong>parse configuration in other formats successfully</strong>.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Parsing any format configurations as "Properties" format, and failure.</p> <p dir="auto">The configuration parsing process is unreasonable, that code only accept "Properties" format.</p>
<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.6</li> <li>Operating System version: xxx</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">1.this is my mavenconfig ,it's not a springboot project ,but springmvc ,2.7.4.1 and 2.6.X is ok. 2.7.6 in springboot project is ok.<br> <code class="notranslate"> &lt;dependency&gt; &lt;groupId&gt;org.apache.dubbo&lt;/groupId&gt; &lt;artifactId&gt;dubbo&lt;/artifactId&gt; &lt;version&gt;2.7.6&lt;/version&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;artifactId&gt;spring&lt;/artifactId&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;artifactId&gt;servlet-api&lt;/artifactId&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;artifactId&gt;log4j&lt;/artifactId&gt; &lt;groupId&gt;log4j&lt;/groupId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.javassist&lt;/groupId&gt; &lt;artifactId&gt;javassist&lt;/artifactId&gt; &lt;version&gt;3.20.0-GA&lt;/version&gt; &lt;/dependency&gt; &lt;!--dubbo end--&gt; &lt;!-- https://mvnrepository.com/artifact/org.apache.zookeeper/zookeeper --&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.zookeeper&lt;/groupId&gt; &lt;artifactId&gt;zookeeper&lt;/artifactId&gt; &lt;version&gt;3.4.9&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.curator&lt;/groupId&gt; &lt;artifactId&gt;curator-framework&lt;/artifactId&gt; &lt;version&gt;4.2.0&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.curator&lt;/groupId&gt; &lt;artifactId&gt;curator-recipes&lt;/artifactId&gt; &lt;version&gt;4.2.0&lt;/version&gt; &lt;/dependency&gt;</code></p> <ol start="2" dir="auto"> <li>I got "java.lang.StackOverflowError",when i use the method config ,like this :<br> <code class="notranslate"> &lt;dubbo:reference id="ierpWishProductService" interface="com.mangoerp.product.api.service.wish.IErpWishProductService" timeout="30000" retries="0" version="${dubbo.product.version}"&gt; &lt;dubbo:method name="batchEditPic" async="true" return="false"/&gt; &lt;/dubbo:reference&gt;</code></li> </ol> <p dir="auto">exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at java.net.URLClassLoader.findResource(URLClassLoader.java:569) at java.lang.ClassLoader.getResource(ClassLoader.java:1089) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1242) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessBeforeDestruction(PersistenceAnnotationBeanPostProcessor.java:375) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:239) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:552) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:528) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:831) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:563) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:528) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:831) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:466) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:459) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1065) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:228) at org.apache.dubbo.config.spring.ReferenceBean.prepareDubboConfigBeans(ReferenceBean.java:86) at org.apache.dubbo.config.spring.ReferenceBean.afterPropertiesSet(ReferenceBean.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:466) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:459) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1065) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:228) at org.apache.dubbo.config.spring.ReferenceBean.prepareDubboConfigBeans(ReferenceBean.java:86) at org.apache.dubbo.config.spring.ReferenceBean.afterPropertiesSet(ReferenceBean.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144)"><pre class="notranslate"><code class="notranslate">at java.net.URLClassLoader.findResource(URLClassLoader.java:569) at java.lang.ClassLoader.getResource(ClassLoader.java:1089) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1242) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessBeforeDestruction(PersistenceAnnotationBeanPostProcessor.java:375) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:239) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:552) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:528) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:831) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:563) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:528) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:831) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:466) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:459) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1065) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:228) at org.apache.dubbo.config.spring.ReferenceBean.prepareDubboConfigBeans(ReferenceBean.java:86) at org.apache.dubbo.config.spring.ReferenceBean.afterPropertiesSet(ReferenceBean.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:466) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:459) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1065) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:228) at org.apache.dubbo.config.spring.ReferenceBean.prepareDubboConfigBeans(ReferenceBean.java:86) at org.apache.dubbo.config.spring.ReferenceBean.afterPropertiesSet(ReferenceBean.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) at com.alibaba.spring.util.BeanFactoryUtils.getBeans(BeanFactoryUtils.java:80) at com.alibaba.spring.util.BeanFactoryUtils.getOptionalBean(BeanFactoryUtils.java:59) at org.apache.dubbo.config.spring.extension.SpringExtensionFactory.getExtension(SpringExtensionFactory.java:69) at org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory.getExtension(AdaptiveExtensionFactory.java:47) at org.apache.dubbo.common.extension.ExtensionLoader.injectExtension(ExtensionLoader.java:657) at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:614) at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:405) at org.apache.dubbo.rpc.model.ApplicationModel.getConfigManager(ApplicationModel.java:92) at org.apache.dubbo.config.AbstractConfig.addIntoConfigManager(AbstractConfig.java:579) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1418) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:788) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:541) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:387) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:354) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:348) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1053) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:144) </code></pre></div>
0
<p dir="auto">I'm unable to link my GitHub account to FreeCodeCamp (<a href="http://www.freecodecamp.com/fccbd1cb0b2" rel="nofollow">http://www.freecodecamp.com/fccbd1cb0b2</a>). It gives me the message: Your GitHub is already associated with another account. You may have accidentally created a duplicate account. No worries, though. We can fix this real quick. Please email us with your GitHub username: <a href="mailto:team@freecodecamp.com">team@freecodecamp.com</a>.</p> <p dir="auto">I sent an email to <a href="mailto:team@freecodecamp.com">team@freecodecamp.com</a> last week and have not yet heard back.</p>
<p dir="auto">Css Flexbox: Using the Flex-direction Property to Make a Row<br> <a href="http://beta.freecodecamp.com/en/challenges/css-flexbox/using-the-flexdirection-property-to-make-a-row" rel="nofollow">http://beta.freecodecamp.com/en/challenges/css-flexbox/using-the-flexdirection-property-to-make-a-row</a></p> <p dir="auto">The challenge passes without input or correct/requested solution.</p> <p dir="auto"><strong>because</strong><br> <code class="notranslate">display:flex;</code><br> is equivalent to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="display:flex; flex-direction:row;"><pre class="notranslate"><code class="notranslate">display:flex; flex-direction:row; </code></pre></div>
0
<p dir="auto">It seems like there is currently no option to use the email-only authentication with the firebase_auth plugin.</p>
<p dir="auto">It would be great to have an implementation for passwordless signon. Its an option in firebase but not the plugin. Can we add a method and documentation for this?</p>
1
<p dir="auto">If I run VSCode as <strong>root</strong> from bash on Ubuntu/Xubuntu/Lubuntu/Kubuntu it doesn't respond on startup.<br> This problem occurred on fresh installs, in VMs, on both of my devices.<br> However running a quick <code class="notranslate">chown -R root:root /</code> fixed the problem (It is a local VM, so whatever).<br> [Disclaimer: Know what you do, do not copy paste that into your terminal]</p> <p dir="auto">Anyone else experienced the same on a Ubuntu based distro lately? On Debian/Arch it works just fine.</p> <p dir="auto">BTW: I couldn't install the omnisharp plugin for Atom because of the exact same reason.</p>
<p dir="auto">jay@jay-virtual-machine:<del>/Desktop$ sudo code<br> bash: cannot set terminal process group (-1): Inappropriate ioctl for device<br> bash: no job control in this shell<br> ATTENTION: default value of option force_s3tc_enable overridden by environment.<br> [VS Code]: detected unresponsive<br> [VS Code]: detected unresponsive<br> jay@jay-virtual-machine:</del>/Desktop$ events.js:141<br> throw er; // Unhandled 'error' event<br> ^</p> <p dir="auto">Error: channel closed<br> at process.target.send (internal/child_process.js:509:16)<br> at /usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:20:9562<br> at t (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:11:18479)<br> at Object.callOnRemote (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:11:18413)<br> at Object.onUnexpectedPluginHostError (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:4:9764)<br> at e.unexpectedErrorHandler (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:19:17071)<br> at e.onUnexpectedError (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:7:17878)<br> at Object.u <a href="/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:7:15312">as onUnexpectedError</a><br> at process. (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:20:9853)<br> at emitOne (events.js:82:20)</p>
1
<ul dir="auto"> <li>Electron Version: 1.8.7, 2.0.2 and 3.0.0-beta.4</li> <li>Operating System (Platform and Version): Ubuntu Linux 18.04</li> <li>Last known working Electron version: ?</li> </ul> <p dir="auto"><strong>Expected Behavior</strong></p> <p dir="auto"><code class="notranslate">pointer: cursor</code> should work regardless of whether BrowserWindow was created with <code class="notranslate">frame: false</code>.</p> <p dir="auto"><strong>Actual behavior</strong></p> <p dir="auto"><code class="notranslate">pointer: cursor</code> stops working at about 76% height of the window, when using <code class="notranslate">frame: false</code>.</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">You can use Electron Fiddle to load the repro: <a href="https://gist.github.com/joaomoreno/2bb9879aee864f22704882b5fac825c3">https://gist.github.com/joaomoreno/2bb9879aee864f22704882b5fac825c3</a></p> <p dir="auto"><strong>Additional Information</strong></p> <p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="339441596" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/53870" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/53870/hovercard" href="https://github.com/microsoft/vscode/issues/53870">microsoft/vscode#53870</a></p>
<ul dir="auto"> <li>Electron version: 1.6.2</li> <li>Operating system: OSX</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">I should be able to use the <code class="notranslate">--trace-warnings</code> flag in node by passing it like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="app.commandLine.appendSwitch('trace-warnings')"><pre class="notranslate"><span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-c1">commandLine</span><span class="pl-kos">.</span><span class="pl-en">appendSwitch</span><span class="pl-kos">(</span><span class="pl-s">'trace-warnings'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">This enables stack traces for unhandled promise rejections. Right now, node will print "possibly unhandled promise rejection: " but not print a stack trace, which is incredibly frustrating.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Passing the flag to node enables stack traces for unhandled promise warnings.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Run this code within <code class="notranslate">index.js</code> of the electron app:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Promise((resolve, reject) =&gt; reject(new Error(&quot;foo&quot;)))"><pre class="notranslate"><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-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">"foo"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span></pre></div>
0
<p dir="auto">I am not sure whether supporting IE is a priority but I have noticed that the numerical list in the map page using IE11 shows up as "1".</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13142234/9484174/9bfe7ce0-4b76-11e5-871e-11c90936f623.jpg"><img src="https://cloud.githubusercontent.com/assets/13142234/9484174/9bfe7ce0-4b76-11e5-871e-11c90936f623.jpg" alt="fccslotmachinebug" style="max-width: 100%;"></a></p>
<p dir="auto">I am using Internet Explorer 11 and all the options in the map and the text summary of videos (I have a limited cap on my ISP so unable to watch these) all have the number 1 next to them. Not sure if this is the way things were set up.</p> <p dir="auto">Sorry if has been mentioned before.</p>
1
<p dir="auto">Hello,</p> <p dir="auto">I'm trying to reproduce the first example <a href="https://seaborn.pydata.org/generated/seaborn.heatmap.html#seaborn-heatmap" rel="nofollow">here</a>, but the first and last rows are cut in half:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12688084/76312356-c9655a80-62ca-11ea-8eb5-173a985e8c64.png"><img src="https://user-images.githubusercontent.com/12688084/76312356-c9655a80-62ca-11ea-8eb5-173a985e8c64.png" alt="Figure_1" style="max-width: 100%;"></a></p> <p dir="auto">I'm using seaborn 0.10.0.</p>
<p dir="auto">With <code class="notranslate">seaborn 0.9.0</code> and <code class="notranslate">matplotlib 3.1.1</code>, the topmost and bottommost row of boxes in a <code class="notranslate">seaborn</code> plot are partially cut off:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sns import numpy as np np.random.seed(42) sns.heatmap(np.random.random((10, 10)))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">42</span>) <span class="pl-s1">sns</span>.<span class="pl-en">heatmap</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-c1">10</span>, <span class="pl-c1">10</span>)))</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3466341/60834654-24204280-a18f-11e9-9212-b792c4f1a7a4.png"><img src="https://user-images.githubusercontent.com/3466341/60834654-24204280-a18f-11e9-9212-b792c4f1a7a4.png" alt="heatmap" style="max-width: 100%;"></a></p> <p dir="auto">As another example, consider this <a href="https://seaborn.pydata.org/examples/heatmap_annotation.html" rel="nofollow">demo from the gallery</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import seaborn as sns sns.set() # Load the example flights dataset and conver to long-form flights_long = sns.load_dataset(&quot;flights&quot;) flights = flights_long.pivot(&quot;month&quot;, &quot;year&quot;, &quot;passengers&quot;) # Draw a heatmap with the numeric values in each cell f, ax = plt.subplots(figsize=(9, 6)) sns.heatmap(flights, annot=True, fmt=&quot;d&quot;, linewidths=.5, ax=ax)"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt import seaborn as sns sns.set() # Load the example flights dataset and conver to long-form flights_long = sns.load_dataset("flights") flights = flights_long.pivot("month", "year", "passengers") # Draw a heatmap with the numeric values in each cell f, ax = plt.subplots(figsize=(9, 6)) sns.heatmap(flights, annot=True, fmt="d", linewidths=.5, ax=ax) </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3466341/60834759-6a75a180-a18f-11e9-81fc-8dc659e4f0e6.png"><img src="https://user-images.githubusercontent.com/3466341/60834759-6a75a180-a18f-11e9-81fc-8dc659e4f0e6.png" alt="heatmap" style="max-width: 100%;"></a></p> <p dir="auto">This is a pretty major visual issue. Apologies if this has been reported before, but I couldn't find a record of such in the GH issues.</p>
1
<h2 dir="auto">Checklist</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> </ul> <p dir="auto">Running from commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/celery/celery/commit/21baef53c39bc1909fd6eee9a2a20e6ce851e88c/hovercard" href="https://github.com/celery/celery/commit/21baef53c39bc1909fd6eee9a2a20e6ce851e88c"><tt>21baef5</tt></a>. Report cannot be run since nothing is able to start.</p> <h2 dir="auto">Steps to reproduce</h2> <p dir="auto">Create a minimal worker, but use a backend URI that specifies a failover set <a href="http://docs.celeryproject.org/en/latest/getting-started/brokers/redis.html#configuration" rel="nofollow">as specified by the documentation</a></p> <p dir="auto">Hostnames do not matter since no connection attempt will be made</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery c = Celery( __name__, broker=&quot;sentinel://host1:8080;sentinel://host2:8080;sentinel://host3:8080&quot;, backend=&quot;sentinel://host1:8080;sentinel://host2:8080;sentinel://host3:8080&quot; ) @c.task def add(x, y): return x + y"><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-s1">c</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>( <span class="pl-s1">__name__</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">"sentinel://host1:8080;sentinel://host2:8080;sentinel://host3:8080"</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">"sentinel://host1:8080;sentinel://host2:8080;sentinel://host3:8080"</span> ) <span class="pl-en">@<span class="pl-s1">c</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">add</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>): <span class="pl-k">return</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">y</span></pre></div> <p dir="auto">Run as normal with <code class="notranslate">celery -A minimal_celery worker</code></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Worker loads and starts as normal</p> <h2 dir="auto">Actual behavior</h2> <p dir="auto">Celery banner formatter attempts to parse the string as a single URI and cannot extract the port number</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2018-10-16 17:47:25,407: CRITICAL/MainProcess] Unrecoverable error: ValueError(&quot;invalid literal for int() with base 10: '8080;sentinel:'&quot;,) Traceback (most recent call last): File &quot;ENV/celery/worker/worker.py&quot;, line 205, in start self.blueprint.start(self) File &quot;ENV/celery/bootsteps.py&quot;, line 115, in start self.on_start() File &quot;ENV/celery/apps/worker.py&quot;, line 139, in on_start self.emit_banner() File &quot;ENV/celery/apps/worker.py&quot;, line 154, in emit_banner ' \n', self.startup_info(artlines=not use_image))), File &quot;ENV/celery/apps/worker.py&quot;, line 217, in startup_info results=self.app.backend.as_uri(), File &quot;ENV/celery/backends/base.py&quot;, line 135, in as_uri url = maybe_sanitize_url(self.url or '') File &quot;ENV/kombu/utils/url.py&quot;, line 92, in maybe_sanitize_url return sanitize_url(url, mask) File &quot;ENV/kombu/utils/url.py&quot;, line 85, in sanitize_url return as_url(*_parse_url(url), sanitize=True, mask=mask) File &quot;ENV/kombu/utils/url.py&quot;, line 52, in url_to_parts parts.port, File &quot;/usr/lib64/python3.6/urllib/parse.py&quot;, line 169, in port port = int(port, 10) ValueError: invalid literal for int() with base 10: '8080;sentinel:'"><pre class="notranslate"><code class="notranslate">[2018-10-16 17:47:25,407: CRITICAL/MainProcess] Unrecoverable error: ValueError("invalid literal for int() with base 10: '8080;sentinel:'",) Traceback (most recent call last): File "ENV/celery/worker/worker.py", line 205, in start self.blueprint.start(self) File "ENV/celery/bootsteps.py", line 115, in start self.on_start() File "ENV/celery/apps/worker.py", line 139, in on_start self.emit_banner() File "ENV/celery/apps/worker.py", line 154, in emit_banner ' \n', self.startup_info(artlines=not use_image))), File "ENV/celery/apps/worker.py", line 217, in startup_info results=self.app.backend.as_uri(), File "ENV/celery/backends/base.py", line 135, in as_uri url = maybe_sanitize_url(self.url or '') File "ENV/kombu/utils/url.py", line 92, in maybe_sanitize_url return sanitize_url(url, mask) File "ENV/kombu/utils/url.py", line 85, in sanitize_url return as_url(*_parse_url(url), sanitize=True, mask=mask) File "ENV/kombu/utils/url.py", line 52, in url_to_parts parts.port, File "/usr/lib64/python3.6/urllib/parse.py", line 169, in port port = int(port, 10) ValueError: invalid literal for int() with base 10: '8080;sentinel:' </code></pre></div>
<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 verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://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"> 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"> 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"> 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"> 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<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"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &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=""><pre class="notranslate"><code class="notranslate"></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>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</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"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1>
0
<p dir="auto">Received the following error while compiling a test application in rust. If this looks like a geuine error I can provide source, stack traces, etc. if needed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/uuser/Tools/rust/rust_dev/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 4974, node: ExprStruct(Path { span: Span { lo: BytePos(4553404), hi: BytePos(4553415), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4975, node: ExprPath(None, Path { span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553422), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4976, node: ExprPath(None, Path { span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553449), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4553404), hi: BytePos(4553477), expn_id: ExpnId(4294967295) } }) 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/uuser/Tools/rust/rust_dev/src/libsyntax/diagnostic.rs:129"><pre class="notranslate"><code class="notranslate">/home/uuser/Tools/rust/rust_dev/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 4974, node: ExprStruct(Path { span: Span { lo: BytePos(4553404), hi: BytePos(4553415), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4975, node: ExprPath(None, Path { span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553422), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4976, node: ExprPath(None, Path { span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553449), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4553404), hi: BytePos(4553477), expn_id: ExpnId(4294967295) } }) 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/uuser/Tools/rust/rust_dev/src/libsyntax/diagnostic.rs:129 </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 cargo build --verbose Fresh gcc v0.2.1 Fresh pkg-config v0.2.1 Compiling openssl-sys v0.4.0 (file:///tmp/rust-openssl/openssl-sys) Running `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` src/lib.rs:1:1: 1:1 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 5326, node: ExprStruct(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5327, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5328, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }) src/lib.rs:1 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] ^ note: the compiler unexpectedly panicked. 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 thread 'rustc' panicked at 'Box&lt;Any&gt;', /mnt/trash1/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:129 stack backtrace: 1: 0x7fa97995e8e0 - sys::backtrace::write::he6b1641fd079577cfmB 2: 0x7fa979984760 - &lt;unknown&gt; 3: 0x7fa9798d60f0 - rt::unwind::begin_unwind_inner::h634afd378febd66detK 4: 0x7fa976e432b0 - &lt;unknown&gt; 5: 0x7fa976e43240 - diagnostic::SpanHandler::span_bug::h189abf680a7a28f874E 6: 0x7fa97793d500 - session::Session::span_bug::h720ba33852c899b7rSs 7: 0x7fa9787a8a10 - &lt;unknown&gt; 8: 0x7fa9786d9700 - &lt;unknown&gt; 9: 0x7fa978698f50 - &lt;unknown&gt; 10: 0x7fa978698f50 - &lt;unknown&gt; 11: 0x7fa9786999b0 - &lt;unknown&gt; 12: 0x7fa978756fc0 - &lt;unknown&gt; 13: 0x7fa97870d900 - &lt;unknown&gt; 14: 0x7fa97873aef0 - &lt;unknown&gt; 15: 0x7fa9786d9d30 - &lt;unknown&gt; 16: 0x7fa97869a200 - &lt;unknown&gt; 17: 0x7fa9786cea00 - &lt;unknown&gt; 18: 0x7fa9786d50f0 - &lt;unknown&gt; 19: 0x7fa9786dbb30 - &lt;unknown&gt; 20: 0x7fa9786db080 - &lt;unknown&gt; 21: 0x7fa97869a200 - &lt;unknown&gt; 22: 0x7fa9786cea00 - &lt;unknown&gt; 23: 0x7fa9786d50f0 - &lt;unknown&gt; 24: 0x7fa9786dbb30 - &lt;unknown&gt; 25: 0x7fa9786db080 - &lt;unknown&gt; 26: 0x7fa97869a200 - &lt;unknown&gt; 27: 0x7fa9786cea00 - &lt;unknown&gt; 28: 0x7fa9786d3a90 - &lt;unknown&gt; 29: 0x7fa9786dbb30 - &lt;unknown&gt; 30: 0x7fa978698f50 - &lt;unknown&gt; 31: 0x7fa978787d40 - &lt;unknown&gt; 32: 0x7fa978698830 - &lt;unknown&gt; 33: 0x7fa9786999b0 - &lt;unknown&gt; 34: 0x7fa9786dbb30 - &lt;unknown&gt; 35: 0x7fa978698f50 - &lt;unknown&gt; 36: 0x7fa9786999b0 - &lt;unknown&gt; 37: 0x7fa978756fc0 - &lt;unknown&gt; 38: 0x7fa97870d900 - &lt;unknown&gt; 39: 0x7fa9786dbb30 - &lt;unknown&gt; 40: 0x7fa9786db080 - &lt;unknown&gt; 41: 0x7fa97869a200 - &lt;unknown&gt; 42: 0x7fa9786cea00 - &lt;unknown&gt; 43: 0x7fa9786d50f0 - &lt;unknown&gt; 44: 0x7fa9786dbb30 - &lt;unknown&gt; 45: 0x7fa978698f50 - &lt;unknown&gt; 46: 0x7fa9786999b0 - &lt;unknown&gt; 47: 0x7fa9786dbb30 - &lt;unknown&gt; 48: 0x7fa978698f50 - &lt;unknown&gt; 49: 0x7fa9786999b0 - &lt;unknown&gt; 50: 0x7fa978756fc0 - &lt;unknown&gt; 51: 0x7fa9786887a0 - &lt;unknown&gt; 52: 0x7fa978684210 - &lt;unknown&gt; 53: 0x7fa97875dd80 - trans::base::trans_crate::ha8556e563b91ec61fQv 54: 0x7fa979f5f250 - driver::phase_4_translate_to_llvm::hc334bfd7f2b08e6d2Oa 55: 0x7fa979f384b0 - driver::compile_input::h6a09d1f5442479b9Eba 56: 0x7fa97a007770 - run_compiler::h940da8caa9037102Bbc 57: 0x7fa97a005d00 - &lt;unknown&gt; 58: 0x7fa97a004be0 - &lt;unknown&gt; 59: 0x7fa9799e1770 - &lt;unknown&gt; 60: 0x7fa9799e1760 - rust_try 61: 0x7fa97a004e90 - &lt;unknown&gt; 62: 0x7fa979971e00 - &lt;unknown&gt; 63: 0x7fa974614f70 - &lt;unknown&gt; 64: 0x7fa97955d389 - clone 65: 0x0 - &lt;unknown&gt; Could not compile `openssl-sys`. Caused by: Process didn't exit successfully: `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` (status=101)"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 cargo build --verbose Fresh gcc v0.2.1 Fresh pkg-config v0.2.1 Compiling openssl-sys v0.4.0 (file:///tmp/rust-openssl/openssl-sys) Running `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` src/lib.rs:1:1: 1:1 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 5326, node: ExprStruct(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5327, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5328, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }) src/lib.rs:1 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] ^ note: the compiler unexpectedly panicked. 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 thread 'rustc' panicked at 'Box&lt;Any&gt;', /mnt/trash1/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:129 stack backtrace: 1: 0x7fa97995e8e0 - sys::backtrace::write::he6b1641fd079577cfmB 2: 0x7fa979984760 - &lt;unknown&gt; 3: 0x7fa9798d60f0 - rt::unwind::begin_unwind_inner::h634afd378febd66detK 4: 0x7fa976e432b0 - &lt;unknown&gt; 5: 0x7fa976e43240 - diagnostic::SpanHandler::span_bug::h189abf680a7a28f874E 6: 0x7fa97793d500 - session::Session::span_bug::h720ba33852c899b7rSs 7: 0x7fa9787a8a10 - &lt;unknown&gt; 8: 0x7fa9786d9700 - &lt;unknown&gt; 9: 0x7fa978698f50 - &lt;unknown&gt; 10: 0x7fa978698f50 - &lt;unknown&gt; 11: 0x7fa9786999b0 - &lt;unknown&gt; 12: 0x7fa978756fc0 - &lt;unknown&gt; 13: 0x7fa97870d900 - &lt;unknown&gt; 14: 0x7fa97873aef0 - &lt;unknown&gt; 15: 0x7fa9786d9d30 - &lt;unknown&gt; 16: 0x7fa97869a200 - &lt;unknown&gt; 17: 0x7fa9786cea00 - &lt;unknown&gt; 18: 0x7fa9786d50f0 - &lt;unknown&gt; 19: 0x7fa9786dbb30 - &lt;unknown&gt; 20: 0x7fa9786db080 - &lt;unknown&gt; 21: 0x7fa97869a200 - &lt;unknown&gt; 22: 0x7fa9786cea00 - &lt;unknown&gt; 23: 0x7fa9786d50f0 - &lt;unknown&gt; 24: 0x7fa9786dbb30 - &lt;unknown&gt; 25: 0x7fa9786db080 - &lt;unknown&gt; 26: 0x7fa97869a200 - &lt;unknown&gt; 27: 0x7fa9786cea00 - &lt;unknown&gt; 28: 0x7fa9786d3a90 - &lt;unknown&gt; 29: 0x7fa9786dbb30 - &lt;unknown&gt; 30: 0x7fa978698f50 - &lt;unknown&gt; 31: 0x7fa978787d40 - &lt;unknown&gt; 32: 0x7fa978698830 - &lt;unknown&gt; 33: 0x7fa9786999b0 - &lt;unknown&gt; 34: 0x7fa9786dbb30 - &lt;unknown&gt; 35: 0x7fa978698f50 - &lt;unknown&gt; 36: 0x7fa9786999b0 - &lt;unknown&gt; 37: 0x7fa978756fc0 - &lt;unknown&gt; 38: 0x7fa97870d900 - &lt;unknown&gt; 39: 0x7fa9786dbb30 - &lt;unknown&gt; 40: 0x7fa9786db080 - &lt;unknown&gt; 41: 0x7fa97869a200 - &lt;unknown&gt; 42: 0x7fa9786cea00 - &lt;unknown&gt; 43: 0x7fa9786d50f0 - &lt;unknown&gt; 44: 0x7fa9786dbb30 - &lt;unknown&gt; 45: 0x7fa978698f50 - &lt;unknown&gt; 46: 0x7fa9786999b0 - &lt;unknown&gt; 47: 0x7fa9786dbb30 - &lt;unknown&gt; 48: 0x7fa978698f50 - &lt;unknown&gt; 49: 0x7fa9786999b0 - &lt;unknown&gt; 50: 0x7fa978756fc0 - &lt;unknown&gt; 51: 0x7fa9786887a0 - &lt;unknown&gt; 52: 0x7fa978684210 - &lt;unknown&gt; 53: 0x7fa97875dd80 - trans::base::trans_crate::ha8556e563b91ec61fQv 54: 0x7fa979f5f250 - driver::phase_4_translate_to_llvm::hc334bfd7f2b08e6d2Oa 55: 0x7fa979f384b0 - driver::compile_input::h6a09d1f5442479b9Eba 56: 0x7fa97a007770 - run_compiler::h940da8caa9037102Bbc 57: 0x7fa97a005d00 - &lt;unknown&gt; 58: 0x7fa97a004be0 - &lt;unknown&gt; 59: 0x7fa9799e1770 - &lt;unknown&gt; 60: 0x7fa9799e1760 - rust_try 61: 0x7fa97a004e90 - &lt;unknown&gt; 62: 0x7fa979971e00 - &lt;unknown&gt; 63: 0x7fa974614f70 - &lt;unknown&gt; 64: 0x7fa97955d389 - clone 65: 0x0 - &lt;unknown&gt; Could not compile `openssl-sys`. Caused by: Process didn't exit successfully: `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` (status=101) </code></pre></div> <p dir="auto">Rust version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-dev (81bce5290 2015-02-16) (built 2015-02-17) binary: rustc commit-hash: 81bce5290ff55b9a2eddd83d31b0778180904d7f commit-date: 2015-02-16 build-date: 2015-02-17 host: x86_64-unknown-linux-gnu release: 1.0.0-dev"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-dev (81bce5290 2015-02-16) (built 2015-02-17) binary: rustc commit-hash: 81bce5290ff55b9a2eddd83d31b0778180904d7f commit-date: 2015-02-16 build-date: 2015-02-17 host: x86_64-unknown-linux-gnu release: 1.0.0-dev </code></pre></div> <p dir="auto">OS: Gentoo Linux AMD64</p>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> BUG</p> <p dir="auto"><strong>What is the current behavior?</strong><br> I have the following ES6 module:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const namedExport1 = 'foo'; export const namedExport2 = 'bar'; const Test = function Test() { const factory = { foo: 'bar', }; factory.sayHello = function sayHello(name) { alert(`Hello ${name}`); }; return factory; }; export default Test;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">namedExport1</span> <span class="pl-c1">=</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">namedExport2</span> <span class="pl-c1">=</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">Test</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-v">Test</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">factory</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'bar'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">factory</span><span class="pl-kos">.</span><span class="pl-en">sayHello</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">sayHello</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">`Hello <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">name</span><span class="pl-kos">}</span></span>`</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">return</span> <span class="pl-s1">factory</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Test</span><span class="pl-kos">;</span></pre></div> <p dir="auto">If I import it as <code class="notranslate">import myModule from 'path/Test'</code> and it is located in the node_modules directory, it gets imported as:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ default: Test() namedExport1: 'foo' namedExport2: 'bar' }"><pre class="notranslate"><span class="pl-kos">{</span> default: <span class="pl-v">Test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> namedExport1: <span class="pl-s">'foo'</span> namedExport2: <span class="pl-s">'bar'</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">However, if I load the module from any other directory, it gets imported as the default method:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Test() { var factory = { foo: 'bar' }; factory.sayHello = function sayHello(name) { alert('Hello ' + name); }; return factory; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Test</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">factory</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'bar'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">factory</span><span class="pl-kos">.</span><span class="pl-en">sayHello</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">sayHello</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">'Hello '</span> <span class="pl-c1">+</span> <span class="pl-s1">name</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">return</span> <span class="pl-s1">factory</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> Should always import the default export.</p> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.</strong><br> Webpack: 2.1.0-beta.27<br> Node: v7</p>
<p dir="auto"><strong>I'm submitting a bug report</strong></p> <p dir="auto"><strong>Webpack version:</strong><br> 2.1.0-beta.25</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX 10.12 (16A323)</p> <p dir="auto"><strong>Current behavior:</strong><br> When I use webpack with babel and the the <code class="notranslate">babel-plugin-transform-es2015-modules-commonjs</code> transform I can't import a ES6 module anymore which is not transpiled by babel.</p> <p dir="auto">Babel handles the module like an CommonJS module because webpack doesn't set the <code class="notranslate">__esModules</code> flag to <code class="notranslate">true</code>.</p> <p dir="auto"><strong>Expected/desired behavior:</strong><br> I should be able to import the module.</p> <ul dir="auto"> <li><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.</strong><br> <a href="https://github.com/k15a/webpack2-babel-bug">https://github.com/k15a/webpack2-babel-bug</a></li> <li><strong>What is the motivation / use case for changing the behavior?</strong><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183665744" data-permission-text="Title is private" data-url="https://github.com/styled-components/styled-components/issues/115" data-hovercard-type="issue" data-hovercard-url="/styled-components/styled-components/issues/115/hovercard" href="https://github.com/styled-components/styled-components/issues/115">styled-components/styled-components#115</a></li> <li><strong>Language:</strong><br> ES6/7</li> </ul>
1
<p dir="auto">HI, i wanted to look at typescript and saw, that private members are not really private in console :D<br> i searched in your FAQ and found an entry to this, but i think this might be a solution for private members.</p> <p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.9</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=" // you all know it: class Foo { private x = 0; increment(): number { this.x++; return x; } }"><pre class="notranslate"><span class="pl-c">// you all know it:</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-en">increment</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Wished behavior:</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// what about something like this? var Foo = (function () { var privates = {}; function Foo() { privates[ this ] = { x: 0 }; } Foo.prototype.increment = function () { privates[ this ].x++; return privates[ this ].x; }; return Foo; })();"><pre class="notranslate"><span class="pl-c">// what about something like this?</span> <span class="pl-k">var</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</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">privates</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">privates</span><span class="pl-kos">[</span> <span class="pl-smi">this</span> <span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">0</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">Foo</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">increment</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">privates</span><span class="pl-kos">[</span> <span class="pl-smi">this</span> <span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">privates</span><span class="pl-kos">[</span> <span class="pl-smi">this</span> <span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-v">Foo</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>Actual behavior:</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // generates var Foo = (function () { var x = 0; function Foo() { } Foo.prototype.increment = function () { x++; return x; }; return Foo; })();"><pre class="notranslate"><span class="pl-c">// generates</span> <span class="pl-k">var</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</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">x</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-v">Foo</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">Foo</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">increment</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">x</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">x</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-v">Foo</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">Consider the following code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Test { private x: number; constructor() { this.x = 42; } f() : number { return this.x; } }"><pre class="notranslate"><code class="notranslate">export class Test { private x: number; constructor() { this.x = 42; } f() : number { return this.x; } } </code></pre></div> <p dir="auto">Typescript generates the following JS</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Test = (function () { function Test() { this.x = 42; } Test.prototype.f = function () { return this.x; }; return Test; })(); exports.Test = Test;"><pre class="notranslate"><code class="notranslate">var Test = (function () { function Test() { this.x = 42; } Test.prototype.f = function () { return this.x; }; return Test; })(); exports.Test = Test; </code></pre></div> <p dir="auto">Obviously, one could run something like <code class="notranslate">new Test().x</code> in a JS library, and <code class="notranslate">private</code> invariant would fail. I think it's not a kind of behaviour one would expect from <code class="notranslate">private</code>, at least in <code class="notranslate">export</code>ed classes. The fix is quite simple:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Test = (function () { var _private = {}; function Test() { _private.x = 42; } Test.prototype.f = function () { return _private.x; }; return Test; })(); exports.Test = Test;"><pre class="notranslate"><code class="notranslate">var Test = (function () { var _private = {}; function Test() { _private.x = 42; } Test.prototype.f = function () { return _private.x; }; return Test; })(); exports.Test = Test; </code></pre></div>
1
<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></p> <p dir="auto">Given a module using the RouterModule:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@NgModule({ declarations: [ AppComponent, UsersComponent, UserComponent, HomeComponent ], imports: [ BrowserModule, FormsModule, HttpModule, RouterModule.forRoot([ { path: '', component: HomeComponent}, { path: 'users', component: UsersComponent} ]) ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }"><pre class="notranslate">@<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">declarations</span>: <span class="pl-kos">[</span> <span class="pl-smi">AppComponent</span><span class="pl-kos">,</span> <span class="pl-smi">UsersComponent</span><span class="pl-kos">,</span> <span class="pl-smi">UserComponent</span><span class="pl-kos">,</span> <span class="pl-smi">HomeComponent</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">imports</span>: <span class="pl-kos">[</span> <span class="pl-smi">BrowserModule</span><span class="pl-kos">,</span> <span class="pl-smi">FormsModule</span><span class="pl-kos">,</span> <span class="pl-smi">HttpModule</span><span class="pl-kos">,</span> <span class="pl-smi">RouterModule</span><span class="pl-kos">.</span><span class="pl-en">forRoot</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">HomeComponent</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'users'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">UsersComponent</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">providers</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">bootstrap</span>: <span class="pl-kos">[</span><span class="pl-smi">AppComponent</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><code class="notranslate">UsersComponent</code> uses <code class="notranslate">UserComponent</code> and a <code class="notranslate">RouterLink</code> in its template:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;app-user&gt;&lt;/app-user&gt; &lt;a routerLink=&quot;/&quot;&gt;Home&lt;/a&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">app-user</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">app-user</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">routerLink</span>="<span class="pl-s">/</span>"<span class="pl-kos">&gt;</span>Home<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">whereas <code class="notranslate">UserComponent</code> is just plain HTML for this repro.</p> <p dir="auto">Testing a simple component using Angular 2.1.0 and Router ~3.0.0<br> for a component using <code class="notranslate">routerLink</code> in its template like <code class="notranslate">UsersComponent</code>, we had to add <code class="notranslate">RouterTestingModule</code> in the imports of the testing module:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppModule } from '../app.module'; import { UsersComponent } from './users.component'; describe('Component: Users', () =&gt; { beforeEach(() =&gt; { TestBed.configureTestingModule({ imports: [AppModule, RouterTestingModule], }); }); it('should create the component', () =&gt; { let fixture = TestBed.createComponent(UsersComponent); let app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">TestBed</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core/testing'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">RouterTestingModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/router/testing'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../app.module'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">UsersComponent</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./users.component'</span><span class="pl-kos">;</span> <span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Component: Users'</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-en">beforeEach</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">TestBed</span><span class="pl-kos">.</span><span class="pl-en">configureTestingModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">imports</span>: <span class="pl-kos">[</span><span class="pl-smi">AppModule</span><span class="pl-kos">,</span> <span class="pl-smi">RouterTestingModule</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-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should create the component'</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-k">let</span> <span class="pl-s1">fixture</span> <span class="pl-c1">=</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">createComponent</span><span class="pl-kos">(</span><span class="pl-smi">UsersComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-c1">debugElement</span><span class="pl-kos">.</span><span class="pl-c1">componentInstance</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">app</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeTruthy</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">whereas for a "dumb" component like <code class="notranslate">UserComponent</code> we did not:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { TestBed } from '@angular/core/testing'; import { AppModule } from '../app.module'; import { UserComponent } from './user.component'; describe('Component: User', () =&gt; { beforeEach(() =&gt; { TestBed.configureTestingModule({ imports: [AppModule], }); }); it('should create the component', () =&gt; { let fixture = TestBed.createComponent(UserComponent); let app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">TestBed</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core/testing'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../app.module'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">UserComponent</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./user.component'</span><span class="pl-kos">;</span> <span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Component: User'</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-en">beforeEach</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">TestBed</span><span class="pl-kos">.</span><span class="pl-en">configureTestingModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">imports</span>: <span class="pl-kos">[</span><span class="pl-smi">AppModule</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-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should create the component'</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-k">let</span> <span class="pl-s1">fixture</span> <span class="pl-c1">=</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">createComponent</span><span class="pl-kos">(</span><span class="pl-smi">UserComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-c1">debugElement</span><span class="pl-kos">.</span><span class="pl-c1">componentInstance</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">app</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeTruthy</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>Now, using the router 3.1.0, the above test throws:<br> <code class="notranslate">No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.</code></strong></p> <p dir="auto">This can be fixed by adding the <code class="notranslate">RouterTestingModule</code> in the imports of the testing module for the dumb component too, but this is a regression/breaking change compared to the behavior we used to have.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">We should be able to test a component that does not rely on <code class="notranslate">routerLink</code> without having to import the <code class="notranslate">RouterTestingModule</code> as we used to.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> See above</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">MacOSX</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X<br> Angular 2.1.0, Router 3.1.0</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br> All</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> All</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li> </ul>
<ul class="contains-task-list"> <li><strong>I'm submitting a ...</strong></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bug report</li> </ul> <p dir="auto"><strong>Current behavior</strong><br> Angular may be performing unnecessary duplicate work when starting up the app. I would expect that the <em>first</em> time that a component is encountered that it's "compiled" (the template string parsed and the JS code generated) and after that it's re-used if and when the component is encountered again.</p> <p dir="auto">But if you use templateUrl you will see the same template file being requested over and over which suggests this may not be the case. For example, I have a price display component which is used in multiple places and the template can be requested 8+ times or more. Is it being re-parsed and re-built each time?</p> <p dir="auto">It seems unnecessary and wasteful.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> Any templateUrl should be requested no more than once.</p> <ul dir="auto"> <li><strong>What is the expected behavior?</strong><br> Still only request the templateUrl once (erm, maybe the issue template doesn't need this same heading repeated?)</li> <li><strong>What is the motivation / use case for changing the behavior?</strong><br> Optimize behavior</li> <li><strong>Angular version:</strong> 2.0.0-beta.X<br> 2.0.0-RC-1</li> </ul>
0
<p dir="auto">This is not really bugging me, but just would like to know if there is anything wrong with the code (I am on Ubuntu 18.04 if that helps).</p> <h4 dir="auto">Reproducing code example (<code class="notranslate">test.py</code>):</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np from scipy.interpolate import LSQBivariateSpline # generate data x, y = np.meshgrid( np.linspace(0, 10, 30), np.linspace(0, 5, 40) ) x = x.flatten() y = y.flatten() z = np.exp(-(x-5)**2/4) + np.exp(-(y-2)**2/3) # define the knot positions tx = [1, 2, 4, 5, 6, 8, 9] ty = [0.2, 0.8, 1.1, 1.8, 2.5, 3, 3.7, 4.2, 4.9] # get spline fit s = LSQBivariateSpline(x, y, z, tx, ty, kx=3, ky=3) # new evaluation x2, y2 = np.meshgrid( np.linspace(0, 10, 50), np.linspace(0, 5, 60) ) z_new = s(x2, y2, grid=False)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">interpolate</span> <span class="pl-k">import</span> <span class="pl-v">LSQBivariateSpline</span> <span class="pl-c"># generate data</span> <span class="pl-s1">x</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>( <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">10</span>, <span class="pl-c1">30</span>), <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">5</span>, <span class="pl-c1">40</span>) ) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">flatten</span>() <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span>.<span class="pl-en">flatten</span>() <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span>(<span class="pl-s1">x</span><span class="pl-c1">-</span><span class="pl-c1">5</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span><span class="pl-c1">/</span><span class="pl-c1">4</span>) <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span>(<span class="pl-s1">y</span><span class="pl-c1">-</span><span class="pl-c1">2</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span><span class="pl-c1">/</span><span class="pl-c1">3</span>) <span class="pl-c"># define the knot positions</span> <span class="pl-s1">tx</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>] <span class="pl-s1">ty</span> <span class="pl-c1">=</span> [<span class="pl-c1">0.2</span>, <span class="pl-c1">0.8</span>, <span class="pl-c1">1.1</span>, <span class="pl-c1">1.8</span>, <span class="pl-c1">2.5</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3.7</span>, <span class="pl-c1">4.2</span>, <span class="pl-c1">4.9</span>] <span class="pl-c"># get spline fit</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-v">LSQBivariateSpline</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">tx</span>, <span class="pl-s1">ty</span>, <span class="pl-s1">kx</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">ky</span><span class="pl-c1">=</span><span class="pl-c1">3</span>) <span class="pl-c"># new evaluation</span> <span class="pl-s1">x2</span>, <span class="pl-s1">y2</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>( <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">10</span>, <span class="pl-c1">50</span>), <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">5</span>, <span class="pl-c1">60</span>) ) <span class="pl-s1">z_new</span> <span class="pl-c1">=</span> <span class="pl-en">s</span>(<span class="pl-s1">x2</span>, <span class="pl-s1">y2</span>, <span class="pl-s1">grid</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div> <h4 dir="auto">Error message:</h4> <p dir="auto">Run code in terminal as <code class="notranslate">python -i test.py</code>, with the following error bumps out before quitting Python terminal:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python -i tmp.py &gt;&gt;&gt; corrupted size vs. prev_size Aborted (core dumped)"><pre class="notranslate">python -i tmp.py &gt;&gt;&gt; corrupted size vs. prev_size Aborted (core dumped)</pre></div> <p dir="auto">or</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python tmp.py Segmentation fault (core dumped)"><pre class="notranslate">python tmp.py Segmentation fault (core dumped)</pre></div> <p dir="auto">This error message shows up randomly, roughly 1 out of 5 trials will trigger the error.</p> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="1.6.0 1.19.4 sys.version_info(major=3, minor=8, micro=0, releaselevel='final', serial=0)"><pre class="notranslate"><span class="pl-c1">1.6</span>.<span class="pl-c1">0</span> <span class="pl-c1">1.19</span>.<span class="pl-c1">4</span> <span class="pl-s1">sys</span>.<span class="pl-en">version_info</span>(<span class="pl-s1">major</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">minor</span><span class="pl-c1">=</span><span class="pl-c1">8</span>, <span class="pl-s1">micro</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">releaselevel</span><span class="pl-c1">=</span><span class="pl-s">'final'</span>, <span class="pl-s1">serial</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)</pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/133" rel="nofollow">http://projects.scipy.org/scipy/ticket/133</a> on 2006-04-02 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rkern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rkern">@rkern</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rkern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rkern">@rkern</a>.</em></p> <p dir="auto">The function <code class="notranslate">f_value</code> in file source:trunk/Lib/stats/stats.py needs review.</p> <p dir="auto">Please look over the StatisticsReview guidelines and add your comments below.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">There is like an endless refresh on this, for me.</p>
1
<p dir="auto"><code class="notranslate">DataFrame.to_string()</code> has a formatters parameter for formatting columns individually, but <code class="notranslate">to_csv()</code> could benefit from that parameter as well. This is especially useful, for example, when formatting integers with missing values.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> date formatting <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9483904" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2583" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2583/hovercard" href="https://github.com/pandas-dev/pandas/issues/2583">#2583</a>, PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17030986" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4313" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/4313/hovercard" href="https://github.com/pandas-dev/pandas/pull/4313">#4313</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30842365" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6797" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6797/hovercard" href="https://github.com/pandas-dev/pandas/issues/6797">#6797</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> string spacing (justification?) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16461392" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4158" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4158/hovercard" href="https://github.com/pandas-dev/pandas/issues/4158">#4158</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> float format <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9210494" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2502" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2502/hovercard" href="https://github.com/pandas-dev/pandas/issues/2502">#2502</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7576982" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2069" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2069/hovercard" href="https://github.com/pandas-dev/pandas/issues/2069">#2069</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> int format, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28482434" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6502" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6502/hovercard" href="https://github.com/pandas-dev/pandas/issues/6502">#6502</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> timedelta fromat <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30795768" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6783" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6783/hovercard" href="https://github.com/pandas-dev/pandas/issues/6783">#6783</a></li> </ul> <p dir="auto"><a href="http://stackoverflow.com/questions/18425400/printing-to-csv-file-with-automatic-width" rel="nofollow">SO question</a></p> <p dir="auto">something like</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.to_csv(format='%10.4f', sep=' ')"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-en">to_csv</span>(<span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'%10.4f'</span>, <span class="pl-s1">sep</span><span class="pl-c1">=</span><span class="pl-s">' '</span>)</pre></div>
1
<p dir="auto">If the output of this product is a matrix, should it not be a column vector matrix rather than a row vector matrix?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; matrix([[1, 2], [3, 4]]).dot(array([5, 6])) matrix([[17, 39]])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; matrix([[1, 2], [3, 4]]).dot(array([5, 6])) matrix([[17, 39]]) </code></pre></div> <p dir="auto">This seems like a bug, although I do not have extensive knowledge of the behavior of <code class="notranslate">numpy.matrix</code> and this has probably already been discussed extensively.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2057" rel="nofollow">http://projects.scipy.org/numpy/ticket/2057</a> on 2012-02-17 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, assigned to unknown.</em></p> <p dir="auto"><a href="http://permalink.gmane.org/gmane.comp.python.scientific.user/31095" rel="nofollow">http://permalink.gmane.org/gmane.comp.python.scientific.user/31095</a></p> <p dir="auto">Consider this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np x = np.arange(5) I = np.asmatrix(np.identity(5)) print np.dot(I, x).shape # -&gt; (1, 5)"><pre class="notranslate"><code class="notranslate">import numpy as np x = np.arange(5) I = np.asmatrix(np.identity(5)) print np.dot(I, x).shape # -&gt; (1, 5) </code></pre></div> <p dir="auto">while <code class="notranslate">(5, 1)</code> would be what is expected based on usual linear algebra rules.</p> <p dir="auto">It might also be a mistake to return a matrix from mixed matrix--array computations.</p>
1
<p dir="auto">using 1.2.4</p> <p dir="auto">I created a pod with a small udp echo server running on port 5005 (mendhak/udp-listener) and exposed it as a udp service.</p> <p dir="auto"><strong>This only happens when the client and server land on the same node!</strong></p> <p dir="auto">A simple client</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nc -4u -w1 $SERVICE_IP 5005 &lt;&lt;&lt; a nc -4u -w1 $POD_IP 5005 &lt;&lt;&lt; b"><pre class="notranslate"><code class="notranslate">nc -4u -w1 $SERVICE_IP 5005 &lt;&lt;&lt; a nc -4u -w1 $POD_IP 5005 &lt;&lt;&lt; b </code></pre></div> <p dir="auto">Meanwhile, on the server</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Listening on UDP port 5005 a a b"><pre class="notranslate"><code class="notranslate">Listening on UDP port 5005 a a b </code></pre></div> <p dir="auto">tcpdump on the node</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="08:00:38.574388 IP 10.228.1.5.38130 &gt; 10.228.1.3.5005: UDP, length 7 08:00:38.574447 IP 10.228.1.5.38130 &gt; 10.228.1.3.5005: UDP, length 7 08:00:42.022864 IP 10.228.1.5.42386 &gt; 10.228.1.3.5005: UDP, length 7"><pre class="notranslate"><code class="notranslate">08:00:38.574388 IP 10.228.1.5.38130 &gt; 10.228.1.3.5005: UDP, length 7 08:00:38.574447 IP 10.228.1.5.38130 &gt; 10.228.1.3.5005: UDP, length 7 08:00:42.022864 IP 10.228.1.5.42386 &gt; 10.228.1.3.5005: UDP, length 7 </code></pre></div> <p dir="auto">By the way, my real use case was using logstash with a udp input and my logs were duplicated sometimes (when the pod that produces logs landed on the same node as logstash).</p> <p dir="auto">another thought, maybe TCP packets get duplicated too but handled?</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
<p dir="auto">Ability to collapse on a field. For example, I want the most relevant result from all different report types. Or similarly, the most recent result of each report type. Or maybe, I want to de-dup on headline.</p> <p dir="auto">So, the sort order would dictate which one from the group is returned. Similar to what is discussed here:<br> <a href="http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/" rel="nofollow">http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/</a></p> <p dir="auto">From my understanding, it seems that in order for field collapsing to be efficient, the result set must be relatively small.</p> <p dir="auto">This is also referred to as "Combine" on some other search products.</p>
<p dir="auto">I restarted a node in my cluster but new documents are not indexing. I thought "yellow' state meant that unassigned replicas are getting initialized but the cluster is still fully functional. Is this a bug?</p> <p dir="auto">+=== debug</p> <p dir="auto">$ curl -XGET 'es.internal.company.com:9200/_cluster/health?pretty'<br> {<br> "cluster_name" : "es_cluster_a",<br> "status" : "yellow",<br> "timed_out" : false,<br> "number_of_nodes" : 9,<br> "number_of_data_nodes" : 6,<br> "active_primary_shards" : 1265,<br> "active_shards" : 3041,<br> "relocating_shards" : 0,<br> "initializing_shards" : 12,<br> "unassigned_shards" : 725,<br> "number_of_pending_tasks" : 0<br> }</p> <p dir="auto">curl -XGET 'es.internal.company.com:9200/_cat/indices?pretty'|sort -k 3n</p> <p dir="auto">yellow open web-logs-2015.05.11 8 2 577100361 0 697.3gb 346.7gb<br> yellow open web-logs-2015.05.12 8 1 737742512 0 640.3gb 496.3gb<br> yellow open web-logs-2015.05.13 8 1 632722103 0 557.6gb 402.5gb<br> yellow open web-logs-2015.05.14 8 2 240925903 0 309.3gb 148.5gb<br> yellow open web-logs-2015.05.15 8 2 0 0 920b 920b</p>
0
<p dir="auto">Apache Druid 25.0.0 contains over 300 new features, bug fixes, performance enhancements, documentation improvements, and additional test coverage from 51 contributors.</p> <p dir="auto"><a href="https://github.com/apache/druid/milestone/48">See the complete set of changes for additional details</a>.</p> <h1 dir="auto"><a name="user-content-25-highlights" href="#25-highlights">#</a> Highlights</h1> <h2 dir="auto"><a name="user-content-25-highlights-msq" href="#25-highlights-msq-">#</a> MSQ task engine now production ready</h2> <p dir="auto">The multi-stage query (MSQ) task engine used for SQL-based ingestion is now production ready. Use it for any supported workloads. For more information, see the following pages:</p> <ul dir="auto"> <li><a href="https://druid.apache.org/docs/latest/ingestion/index.html" rel="nofollow">Ingestion</a></li> <li><a href="https://druid.apache.org/docs/latest/multi-stage-query/index.html" rel="nofollow">SQL-based ingestion</a></li> </ul> <h2 dir="auto"><a name="user-content-25-highlights-deploying-druid" href="#25-highlights-deploying-druid">#</a> Simplified Druid deployments</h2> <p dir="auto">The new <code class="notranslate">start-druid</code> script greatly simplifies deploying any combination of Druid services on a single-server. It comes pre-packaged with the required configs and can be used to launch a fully functional Druid cluster simply by invoking <code class="notranslate">./start-druid</code>. For experienced Druids, it also gives complete control over the runtime properties and JVM arguments to have a cluster that exactly fits your needs.</p> <p dir="auto">The <code class="notranslate">start-druid</code> script deprecates the existing profiles such as <code class="notranslate">start-micro-quickstart</code> and <code class="notranslate">start-nano-quickstart</code>. These profiles may be removed in future releases. For more information, see <a href="https://druid.apache.org/docs/latest/operations/single-server.html" rel="nofollow">Single server deployment</a>.</p> <h2 dir="auto"><a name="user-content-25-highlights-string-dictionary-compression" href="#25-highlights-string-dictionary-compression">#</a> String dictionary compression (experimental)</h2> <p dir="auto">Added support for front coded string dictionaries for smaller string columns, leading to reduced segment sizes with only minor performance penalties for most Druid queries.</p> <p dir="auto">This can be enabled by setting <code class="notranslate">IndexSpec.stringDictionaryEncoding</code> to <code class="notranslate">{"type":"frontCoded", "bucketSize": 4}</code> , where <code class="notranslate">bucketSize</code> is any power of 2 less than or equal to 128. Setting this property instructs indexing tasks to write segments using compressed dictionaries of the specified bucket size.</p> <blockquote> <p dir="auto">Any segment written using string dictionary compression is not readable by older versions of Druid.</p> </blockquote> <p dir="auto">For more information, see <a href="https://druid.apache.org/docs/latest/ingestion/ingestion-spec.html#front-coding" rel="nofollow">Front coding</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1147967678" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12277" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12277/hovercard" href="https://github.com/apache/druid/pull/12277">#12277</a></p> <h2 dir="auto"><a name="user-content-25-highlights-kubernetes-native-tasks" href="#25-highlights-kubernetes-native-tasks">#</a> Kubernetes-native tasks</h2> <p dir="auto">Druid can now use Kubernetes to launch and manage tasks, eliminating the need for middle managers.</p> <p dir="auto">To use this feature, enable the <a href="../extensions.md#loading-extensions">druid-kubernetes-overlord-extensions</a> in the extensions load list for your Overlord process.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1391541066" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13156" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13156/hovercard" href="https://github.com/apache/druid/pull/13156">#13156</a></p> <h2 dir="auto"><a name="user-content-25-highlights-hadoop-3-compatible-binary" href="#25-highlights-hadoop-3-compatible-binary">#</a> Hadoop-3 compatible binary</h2> <p dir="auto">Druid now comes packaged as a dedicated binary for Hadoop-3 users, which contains Hadoop-3 compatible jars. If you do not use Hadoop-3 with your Druid cluster, you may continue using the classic binary.</p> <h1 dir="auto"><a name="user-content-25-multi-stage-query-task-engine" href="#25-multi-stage-query-task-engine">#</a> Multi-stage query (MSQ) task engine</h1> <h2 dir="auto"><a name="user-content-25-msq-docker-enabled" href="#25-msq-docker-enabled">#</a> MSQ enabled for Docker</h2> <p dir="auto">MSQ task query engine is now enabled for Docker by default.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1368833994" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13069" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13069/hovercard" href="https://github.com/apache/druid/pull/13069">#13069</a></p> <h2 dir="auto"><a name="user-content-25-msq-query-history" href="#25-msq-query-history">#</a> Query history</h2> <p dir="auto">Multi-stage queries no longer show up in the Query history dialog. They are still available in the <strong>Recent query tasks</strong> panel.</p> <h2 dir="auto"><a name="user-content-25-msq-clustered-by-limit" href="#25-msq-clustered-by-limit">#</a> Limit on CLUSTERED BY columns</h2> <p dir="auto">When using the MSQ task engine to ingest data, the number of columns that can be passed in the CLUSTERED BY clause is now limited to 1500.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1444995162" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13352" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13352/hovercard" href="https://github.com/apache/druid/pull/13352">#13352</a></p> <h2 dir="auto"><a name="user-content-25-msq-string-dict" href="#25-msq-string-dict">#</a> Support for string dictionary compression</h2> <p dir="auto">The MSQ task engine supports the front-coding of String dictionaries for better compression. This can be enabled for INSERT or REPLACE statements by setting <code class="notranslate">indexSpec</code> to a valid json string in the query context.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1426957873" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13275" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13275/hovercard" href="https://github.com/apache/druid/pull/13275">#13275</a></p> <h2 dir="auto"><a name="user-content-25-msq-sketch-merging-mode" href="#25-msq-sketch-merging-mode">#</a> Sketch merging mode</h2> <p dir="auto">Workers can now gather key statistics, used to generate partition boundaries, either sequentially or in parallel. Set <code class="notranslate">clusterStatisticsMergeMode</code> to <code class="notranslate">PARALLEL</code>, <code class="notranslate">SEQUENTIAL</code> or <code class="notranslate">AUTO</code> in the query context to use the corresponding sketch merging mode. For more information, see <a href="https://druid.apache.org/docs/latest/multi-stage-query/reference.html#sketch-merging-mode" rel="nofollow">Sketch merging mode</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1403913688" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13205" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13205/hovercard" href="https://github.com/apache/druid/pull/13205">#13205</a></p> <h2 dir="auto"><a name="user-content-25-msq-op-improvements" href="#25-msq-op-improvements">#</a> Performance and operational improvements</h2> <ul dir="auto"> <li><strong>Error messages</strong>: For disallowed MSQ warnings of certain types, the warning is now surfaced as the error. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1402559207" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13198" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13198/hovercard" href="https://github.com/apache/druid/pull/13198">#13198</a></li> <li><strong>Secrets</strong>: For tasks containing SQL with sensitive keys, Druid now masks the keys while logging with the help regular expressions. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1410961596" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13231" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13231/hovercard" href="https://github.com/apache/druid/pull/13231">#13231</a></li> <li><strong>Downsampling accuracy</strong>: MSQ task engine now uses the number of bytes instead of number of keys when downsampling data. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1355724816" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12998" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12998/hovercard" href="https://github.com/apache/druid/pull/12998">#12998</a></li> <li><strong>Memory usage</strong>: When determining partition boundaries, the heap footprint of internal sketches used by MSQ is now capped at 10% of available memory or 300 MB, whichever is lower. Previously, the cap was strictly 300 MB. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1426858396" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13274" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13274/hovercard" href="https://github.com/apache/druid/pull/13274">#13274</a></li> <li><strong>Task reports</strong>: Added fields <code class="notranslate">pendingTasks</code> and <code class="notranslate">runningTasks</code> to the worker report. See <a href="#query-task-status-information">Query task status information</a> for related web console changes. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1423372162" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13263" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13263/hovercard" href="https://github.com/apache/druid/pull/13263">#13263</a></li> </ul> <h1 dir="auto"><a name="user-content-25-querying" href="#25-querying">#</a> Querying</h1> <h2 dir="auto"><a name="user-content-25-querying-enabled-async-reads-for-jdbc" href="#25-querying-enabled-async-reads-for-jdbc">#</a> Async reads for JDBC</h2> <p dir="auto">Prevented JDBC timeouts on long queries by returning empty batches when a batch fetch takes too long. Uses an async model to run the result fetch concurrently with JDBC requests.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1402149022" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13196" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13196/hovercard" href="https://github.com/apache/druid/pull/13196">#13196</a></p> <h2 dir="auto"><a name="user-content-25-querying-in-filter" href="#25-querying-in-filter">#</a> Improved algorithm to check values of an IN filter</h2> <p dir="auto">To accommodate large value sets arising from large IN filters or from joins pushed down as IN filters, Druid now uses a sorted merge algorithm for merging the set and dictionary for larger values.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1380768908" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13133" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13133/hovercard" href="https://github.com/apache/druid/pull/13133">#13133</a></p> <h2 dir="auto"><a name="user-content-25-querying-context-security" href="#25-querying-context-security">#</a> Enhanced query context security</h2> <p dir="auto">Added the following configuration properties that refine the query context security model controlled by <code class="notranslate">druid.auth.authorizeQueryContextParams</code>:</p> <ul dir="auto"> <li><code class="notranslate">druid.auth.unsecuredContextKeys</code>: A JSON list of query context keys that do not require a security check.</li> <li><code class="notranslate">druid.auth.securedContextKeys</code>: A JSON list of query context keys that do require a security check.</li> </ul> <p dir="auto">If both are set, <code class="notranslate">unsecuredContextKeys</code> acts as exceptions to <code class="notranslate">securedContextKeys</code>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1369059825" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13071" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13071/hovercard" href="https://github.com/apache/druid/pull/13071">#13071</a></p> <h2 dir="auto"><a name="user-content-25-querying-http-response-headers" href="#25-querying-http-response-headers">#</a> HTTP response headers</h2> <p dir="auto">The HTTP response for a SQL query now correctly sets response headers, same as a native query.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1365421322" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13052" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13052/hovercard" href="https://github.com/apache/druid/pull/13052">#13052</a></p> <h1 dir="auto"><a name="user-content-25-metrics" href="#25-metrics">#</a> Metrics</h1> <h2 dir="auto"><a name="user-content-25-metrics-new-metrics" href="#25-metrics-new-metrics">#</a> New metrics</h2> <p dir="auto">The following metrics have been newly added. For more details, see <a href="https://druid.apache.org/docs/latest/operations/metrics.html" rel="nofollow">the complete list of Druid metrics</a>.</p> <h3 dir="auto"><a name="user-content-25-metrics-new-metrics-batch-alloc" href="#25-metrics-new-metrics-batch-alloc">#</a> Batched segment allocation</h3> <p dir="auto">These metrics pertain to <a href="#25-operations-batch-allocation">batched segment allocation</a>.</p> <table role="table"> <thead> <tr> <th>Metric</th> <th>Description</th> <th>Dimensions</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">task/action/batch/runTime</code></td> <td>Milliseconds taken to execute a batch of task actions. Currently only being emitted for <a href="#25-operations-batch-allocation">batched <code class="notranslate">segmentAllocate</code> actions</a></td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskActionType=segmentAllocate</code></td> </tr> <tr> <td><code class="notranslate">task/action/batch/queueTime</code></td> <td>Milliseconds spent by a batch of task actions in queue. Currently only being emitted for <a href="#25-operations-batch-allocation">batched <code class="notranslate">segmentAllocate</code> actions</a></td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskActionType=segmentAllocate</code></td> </tr> <tr> <td><code class="notranslate">task/action/batch/size</code></td> <td>Number of task actions in a batch that was executed during the emission period. Currently only being emitted for <a href="#25-operations-batch-allocation">batched <code class="notranslate">segmentAllocate</code> actions</a></td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskActionType=segmentAllocate</code></td> </tr> <tr> <td><code class="notranslate">task/action/batch/attempts</code></td> <td>Number of execution attempts for a single batch of task actions. Currently only being emitted for <a href="#25-operations-batch-allocation">batched <code class="notranslate">segmentAllocate</code> actions</a></td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskActionType=segmentAllocate</code></td> </tr> <tr> <td><code class="notranslate">task/action/success/count</code></td> <td>Number of task actions that were executed successfully during the emission period. Currently only being emitted for <a href="#25-operations-batch-allocation">batched <code class="notranslate">segmentAllocate</code> actions</a></td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskId</code>, <code class="notranslate">taskType</code>, <code class="notranslate">taskActionType=segmentAllocate</code></td> </tr> <tr> <td><code class="notranslate">task/action/failed/count</code></td> <td>Number of task actions that failed during the emission period. Currently only being emitted for <a href="#25-operations-batch-allocation">batched <code class="notranslate">segmentAllocate</code> actions</a></td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskId</code>, <code class="notranslate">taskType</code>, <code class="notranslate">taskActionType=segmentAllocate</code></td> </tr> </tbody> </table> <h3 dir="auto"><a name="user-content-25-metrics-new-metrics-streaming-ingest" href="#25-metrics-new-metrics-streaming-ingest">#</a> Streaming ingestion</h3> <table role="table"> <thead> <tr> <th>Metric</th> <th>Description</th> <th>Dimensions</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">ingest/kafka/partitionLag</code></td> <td>Partition-wise lag between the offsets consumed by the Kafka indexing tasks and latest offsets in Kafka brokers. Minimum emission period for this metric is a minute.</td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">stream</code>, <code class="notranslate">partition</code></td> </tr> <tr> <td><code class="notranslate">ingest/kinesis/partitionLag/time</code></td> <td>Partition-wise lag time in milliseconds between the current message sequence number consumed by the Kinesis indexing tasks and latest sequence number in Kinesis. Minimum emission period for this metric is a minute.</td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">stream</code>, <code class="notranslate">partition</code></td> </tr> <tr> <td><code class="notranslate">ingest/pause/time</code></td> <td>Milliseconds spent by a task in a paused state without ingesting.</td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskId</code>, <code class="notranslate">taskType</code></td> </tr> <tr> <td><code class="notranslate">ingest/handoff/time</code></td> <td>Total time taken in milliseconds for handing off a given set of published segments.</td> <td><code class="notranslate">dataSource</code>, <code class="notranslate">taskId</code>, <code class="notranslate">taskType</code></td> </tr> </tbody> </table> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1413166465" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13238" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13238/hovercard" href="https://github.com/apache/druid/pull/13238">#13238</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1441326884" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13331" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13331/hovercard" href="https://github.com/apache/druid/pull/13331">#13331</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1436171319" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13313" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13313/hovercard" href="https://github.com/apache/druid/pull/13313">#13313</a></p> <h2 dir="auto"><a name="user-content-25-metrics-improvements" href="#25-metrics-improvements">#</a> Other improvements</h2> <ul dir="auto"> <li>New dimension <code class="notranslate">taskActionType</code> which may take values such as <code class="notranslate">segmentAllocate</code>, <code class="notranslate">segmentTransactionalInsert</code>, etc. This dimension is reported for <code class="notranslate">task/action/run/time</code> and the new <a href="#25-operations-batch-allocation">batched segment allocation</a> metrics. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1441402531" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13333" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13333/hovercard" href="https://github.com/apache/druid/pull/13333">#13333</a></li> <li>Metric <code class="notranslate">namespace/cache/heapSizeInBytes</code> for global cached lookups now accounts for the <code class="notranslate">String</code> object overhead of 40 bytes. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1406721623" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13219" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13219/hovercard" href="https://github.com/apache/druid/pull/13219">#13219</a></li> <li><code class="notranslate">jvm/gc/cpu</code> has been fixed to report nanoseconds instead of milliseconds. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1454036061" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13383" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13383/hovercard" href="https://github.com/apache/druid/pull/13383">#13383</a></li> </ul> <h1 dir="auto"><a name="user-content-25-nested-columns" href="#25-nested-columns">#</a> Nested columns</h1> <h2 dir="auto"><a name="user-content-25-nested-columns-nested-columns-performance-improvement" href="#25-nested-columns-nested-columns-performance-improvement">#</a> Nested columns performance improvement</h2> <p dir="auto">Improved <code class="notranslate">NestedDataColumnSerializer</code> to no longer explicitly write null values to the field writers for the missing values of every row. Instead, passing the row counter is moved to the field writers so that they can backfill null values in bulk.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1375834202" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13101" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13101/hovercard" href="https://github.com/apache/druid/pull/13101">#13101</a></p> <h2 dir="auto"><a name="user-content-25-nested-columns-support-for-more-formats" href="#25-nested-columns-support-for-more-formats">#</a> Support for more formats</h2> <p dir="auto">Druid nested columns and the associated JSON transform functions now support Avro, ORC, and Parquet.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1439285177" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13325" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13325/hovercard" href="https://github.com/apache/druid/pull/13325">#13325</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1451540965" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13375" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13375/hovercard" href="https://github.com/apache/druid/pull/13375">#13375</a></p> <h2 dir="auto"><a name="user-content-25-nested-columns-refactored-a-datasource-before-unnest-" href="#25-nested-columns-refactored-a-datasource-before-unnest-">#</a> Refactored a datasource before unnest</h2> <p dir="auto">When data requires "flattening" during processing, the operator now takes in an array and then flattens the array into N (N=number of elements in the array) rows where each row has one of the values from the array.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1372235946" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13085" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13085/hovercard" href="https://github.com/apache/druid/pull/13085">#13085</a></p> <h1 dir="auto"><a name="user-content-25-ingestion" href="#25-ingestion">#</a> Ingestion</h1> <h2 dir="auto"><a name="user-content-25-ingestion-improved-filtering-for-cloud-objects" href="#25-ingestion-improved-filtering-for-cloud-objects">#</a> Improved filtering for cloud objects</h2> <p dir="auto">You can now stop at arbitrary subfolders using glob syntax in the <code class="notranslate">ioConfig.inputSource.filter</code> field for native batch ingestion from cloud storage, such as S3.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1361183533" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13027" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13027/hovercard" href="https://github.com/apache/druid/pull/13027">#13027</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-async-task-client-for-streaming-ingestion" href="#25-ingestion-async-task-client-for-streaming-ingestion">#</a> Async task client for streaming ingestion</h2> <p dir="auto">You can now enable asynchronous communication between the stream supervisor and indexing tasks by setting <code class="notranslate">chatAsync</code> to true in the <code class="notranslate">tuningConfig</code>. The async task client uses its own internal thread pool and thus ignrores the <code class="notranslate">chatThreads</code> property.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1445240326" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13354" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13354/hovercard" href="https://github.com/apache/druid/pull/13354">#13354</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-improved-control-for-how-druid-reads-json-data-for-streaming-ingestion" href="#25-ingestion-improved-control-for-how-druid-reads-json-data-for-streaming-ingestion">#</a> Improved handling of JSON data with streaming ingestion</h2> <p dir="auto">You can now better control how Druid reads JSON data for streaming ingestion by setting the following fields in the input format specification:</p> <ul dir="auto"> <li><code class="notranslate">assumedNewlineDelimited</code> to parse lines of JSON independently.</li> <li><code class="notranslate">useJsonNodeReader</code> to retain valid JSON events when parsing multi-line JSON events when a parsing exception occurs.</li> </ul> <p dir="auto">The web console has been updated to include these options.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1373694669" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13089" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13089/hovercard" href="https://github.com/apache/druid/pull/13089">#13089</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-idle-supervisor" href="#25-ingestion-idle-supervisor">#</a> Ingesting from an idle Kafka stream</h2> <p dir="auto">When a Kafka stream becomes inactive, the supervisor ingesting from it can be configured to stop creating new indexing tasks. The supervisor automatically resumes creation of new indexing tasks once the stream becomes active again. Set the property <code class="notranslate">dataSchema.ioConfig.idleConfig.enabled</code> to true in the respective supervisor spec or set <code class="notranslate">druid.supervisor.idleConfig.enabled</code> on the overlord to enable this behaviour. Please see the following for details:</p> <ul dir="auto"> <li><a href="https://druid.apache.org/docs/latest/configuration/index.html#supervisors" rel="nofollow">Overlord configuration</a></li> <li><a href="https://druid.apache.org/docs/latest/development/extensions-core/kafka-supervisor-reference.html#kafkasupervisorioconfig" rel="nofollow">Supervisor spec</a></li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1385820947" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13144" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13144/hovercard" href="https://github.com/apache/druid/pull/13144">#13144</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-kafka-consumer-improvement" href="#25-ingestion-kafka-consumer-improvement">#</a> Kafka Consumer improvement</h2> <p dir="auto">You can now configure the Kafka Consumer's custom deserializer after its instantiation.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1375216967" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13097" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13097/hovercard" href="https://github.com/apache/druid/pull/13097">#13097</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-kafka-supervisor-logging" href="#25-ingestion-kafka-supervisor-logging">#</a> Kafka supervisor logging</h2> <p dir="auto">Kafka supervisor logs are now less noisy. The supervisors now log events at the DEBUG level instead of INFO.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1457141070" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13392" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13392/hovercard" href="https://github.com/apache/druid/pull/13392">#13392</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-fixed-overlord-leader-election" href="#25-ingestion-fixed-overlord-leader-election">#</a> Fixed Overlord leader election</h2> <p dir="auto">Fixed a problem where Overlord leader election failed due to lock reacquisition issues. Druid now fails these tasks and clears all locks so that the Overlord leader election isn't blocked.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1394603647" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13172" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13172/hovercard" href="https://github.com/apache/druid/pull/13172">#13172</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-support-for-inline-protobuf-descriptor" href="#25-ingestion-support-for-inline-protobuf-descriptor">#</a> Support for inline protobuf descriptor</h2> <p dir="auto">Added a new <code class="notranslate">inline</code> type <code class="notranslate">protoBytesDecoder</code> that allows a user to pass inline the contents of a Protobuf descriptor file, encoded as a Base64 string.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1400379777" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13192" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13192/hovercard" href="https://github.com/apache/druid/pull/13192">#13192</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-duplicate-notices" href="#25-ingestion-duplicate-notices">#</a> Duplicate notices</h2> <p dir="auto">For streaming ingestion, notices that are the same as one already in queue won't be enqueued. This will help reduce notice queue size.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1441408249" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13334" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13334/hovercard" href="https://github.com/apache/druid/pull/13334">#13334</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-sampling-from-stream-input-now-respects-the-configured-timeout" href="#25-ingestion-sampling-from-stream-input-now-respects-the-configured-timeout">#</a> Sampling from stream input now respects the configured timeout</h2> <p dir="auto">Fixed a problem where sampling from a stream input, such as Kafka or Kinesis, failed to respect the configured timeout when the stream had no records available. You can now set the maximum amount of time in which the entry iterator will return results.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1432370468" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13296" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13296/hovercard" href="https://github.com/apache/druid/pull/13296">#13296</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-streaming-tasks-resume-on-overlord-switch" href="#25-ingestion-streaming-tasks-resume-on-overlord-switch">#</a> Streaming tasks resume on Overlord switch</h2> <p dir="auto">Fixed a problem where streaming ingestion tasks continued to run until their duration elapsed after the Overlord leader had issued a pause to the tasks. Now, when the Overlord switch occurs right after it has issued a pause to the task, the task remains in a paused state even after the Overlord re-election.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1407739718" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13223" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13223/hovercard" href="https://github.com/apache/druid/pull/13223">#13223</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-fixed-parquet-list-conversion" href="#25-ingestion-fixed-parquet-list-conversion">#</a> Fixed Parquet list conversion</h2> <p dir="auto">Fixed an issue with Parquet list conversion, where lists of complex objects could unexpectedly be wrapped in an extra object, appearing as <code class="notranslate">[{"element":&lt;actual_list_element&gt;},{"element":&lt;another_one&gt;}...]</code> instead of the direct list. This changes the behavior of the parquet reader for lists of structured objects to be consistent with other parquet logical list conversions. The data is now fetched directly, more closely matching its expected structure.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1432293473" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13294" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13294/hovercard" href="https://github.com/apache/druid/pull/13294">#13294</a></p> <h2 dir="auto"><a name="user-content-25-ingestion-introduced-a-tree-type-to-flattenspec" href="#25-ingestion-introduced-a-tree-type-to-flattenspec">#</a> Introduced a tree type to flattenSpec</h2> <p dir="auto">Introduced a <code class="notranslate">tree</code> type to <code class="notranslate">flattenSpec</code>. In the event that a simple hierarchical lookup is required, the <code class="notranslate">tree</code> type allows for faster JSON parsing than <code class="notranslate">jq</code> and <code class="notranslate">path</code> parsing types.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1108732435" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12177" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12177/hovercard" href="https://github.com/apache/druid/pull/12177">#12177</a></p> <h1 dir="auto"><a name="user-content-25-operations" href="#25-operations">#</a> Operations</h1> <h2 dir="auto"><a name="user-content-25-operations-compaction" href="#25-operations-compaction">#</a> Compaction</h2> <p dir="auto">Compaction behavior has changed to improve the amount of time it takes and disk space it takes:</p> <ul dir="auto"> <li>When segments need to be fetched, download them one at a time and delete them when Druid is done with them. This still takes time but minimizes the required disk space.</li> <li>Don't fetch segments on the main compact task when they aren't needed. If the user provides a full <code class="notranslate">granularitySpec</code>, <code class="notranslate">dimensionsSpec</code>, and <code class="notranslate">metricsSpec</code>, Druid skips fetching segments.</li> </ul> <p dir="auto">For more information, see the documentation on <a href="https://druid.apache.org/docs/latest/data-management/compaction.html" rel="nofollow">Compaction</a> and <a href="https://druid.apache.org/docs/latest/data-management/automatic-compaction.html" rel="nofollow">Automatic compaction</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1427870970" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13280" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13280/hovercard" href="https://github.com/apache/druid/pull/13280">#13280</a></p> <h2 dir="auto"><a name="user-content-25-operations-idle-configs-for-the-supervisor" href="#25-operations-idle-configs-for-the-supervisor">#</a> Idle configs for the Supervisor</h2> <p dir="auto">You can now set the Supervisor to idle, which is useful in cases where freeing up slots so that autoscaling can be more effective.</p> <p dir="auto">To configure the idle behavior, use the following properties:</p> <table role="table"> <thead> <tr> <th>Property</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">druid.supervisor.idleConfig.enabled</code></td> <td>(Cluster wide) If <code class="notranslate">true</code>, supervisor can become idle if there is no data on input stream/topic for some time.</td> <td>false</td> </tr> <tr> <td><code class="notranslate">druid.supervisor.idleConfig.inactiveAfterMillis</code></td> <td>(Cluster wide) Supervisor is marked as idle if all existing data has been read from input topic and no new data has been published for <code class="notranslate">inactiveAfterMillis</code> milliseconds.</td> <td><code class="notranslate">600_000</code></td> </tr> <tr> <td><code class="notranslate">inactiveAfterMillis</code></td> <td>(Individual Supervisor) Supervisor is marked as idle if all existing data has been read from input topic and no new data has been published for <code class="notranslate">inactiveAfterMillis</code> milliseconds.</td> <td>no (default == <code class="notranslate">600_000</code>)</td> </tr> </tbody> </table> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1435747275" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13311" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13311/hovercard" href="https://github.com/apache/druid/pull/13311">#13311</a></p> <h2 dir="auto"><a name="user-content-25-operations-improved-supervisor-termination" href="#25-operations-improved-supervisor-termination">#</a> Improved supervisor termination</h2> <p dir="auto">Fixed issues with delayed supervisor termination during certain transient states.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1369353892" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13072" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13072/hovercard" href="https://github.com/apache/druid/pull/13072">#13072</a></p> <h2 dir="auto"><a name="user-content-25-operations-backoff-for-httppostemitter" href="#25-operations-backoff-for-httppostemitter">#</a> Backoff for HttpPostEmitter</h2> <p dir="auto">The <code class="notranslate">HttpPostEmitter</code> option now has a backoff. This means that there should be less noise in the logs and lower CPU usage if you use this option for logging.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1090172063" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12102" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12102/hovercard" href="https://github.com/apache/druid/pull/12102">#12102</a></p> <h2 dir="auto"><a name="user-content-25-operations-dumpsegment-tool-for-nested-columns" href="#25-operations-dumpsegment-tool-for-nested-columns">#</a> DumpSegment tool for nested columns</h2> <p dir="auto">The DumpSegment tool can now be used on nested columns with the <code class="notranslate">--dump nested</code> option.</p> <p dir="auto">For more information, see <a href="https://druid.apache.org/docs/latest/operations/dump-segment" rel="nofollow">dump-segment tool</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1445297730" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13356" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13356/hovercard" href="https://github.com/apache/druid/pull/13356">#13356</a></p> <h2 dir="auto"><a name="user-content-25-operations-segment-loading-and-balancing" href="#25-operations-segment-loading-and-balancing">#</a> Segment loading and balancing</h2> <h3 dir="auto"><a name="user-content-25-operations-batch-allocation" href="#25-operations-batch-allocation">#</a> Batched segment allocation</h3> <p dir="auto">Segment allocation on the Overlord can take some time to finish, which can cause ingestion lag while a task waits for segments to be allocated. Performing segment allocation in batches can help improve performance.</p> <p dir="auto">There are two new properties that affect how Druid performs segment allocation:</p> <table role="table"> <thead> <tr> <th>Property</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">druid.indexer.tasklock.batchSegmentAllocation</code></td> <td>If set to true, Druid performs segment allocate actions in batches to improve throughput and reduce the average <code class="notranslate">task/action/run/time</code>. See <a href="https://druid.apache.org/docs/latest/ingestion/tasks.html#batching-segmentallocate-actions" rel="nofollow">batching <code class="notranslate">segmentAllocate</code> actions</a> for details.</td> <td>false</td> </tr> <tr> <td><code class="notranslate">druid.indexer.tasklock.batchAllocationWaitTime</code></td> <td>Number of milliseconds after Druid adds the first segment allocate action to a batch, until it executes the batch. Allows the batch to add more requests and improve the average segment allocation run time. This configuration takes effect only if <code class="notranslate">batchSegmentAllocation</code> is enabled.</td> <td>500</td> </tr> </tbody> </table> <p dir="auto">In addition to these properties, there are new metrics to track batch segment allocation. For more information, see <a href="#new-metrics-for-segment-allocation">New metrics for segment allocation</a>.</p> <p dir="auto">For more information, see the following:</p> <ul dir="auto"> <li><a href="https://druid.apache.org/docs/latest/configuration/index.html#overlord-operations" rel="nofollow">Overlord operations</a></li> <li><a href="https://druid.apache.org/docs/latest/ingestion/tasks.html#task-actions" rel="nofollow">Task actions and Batching <code class="notranslate">segmentAllocate</code> actions</a></li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1449888957" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13369" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13369/hovercard" href="https://github.com/apache/druid/pull/13369">#13369</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1478246986" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13503" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13503/hovercard" href="https://github.com/apache/druid/pull/13503">#13503</a></p> <h3 dir="auto"><a name="user-content-25-operations-segment-loading-and-balancing-cachingcost-balancer-strategy" href="#25-operations-segment-loading-and-balancing-cachingcost-balancer-strategy">#</a> Improved cachingCost balancer strategy</h3> <p dir="auto">The <code class="notranslate">cachingCost</code> balancer strategy now behaves more similarly to cost strategy. When computing the cost of moving a segment to a server, the following calculations are performed:</p> <ul dir="auto"> <li>Subtract the self cost of a segment if it is being served by the target server</li> <li>Subtract the cost of segments that are marked to be dropped</li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1438694534" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13321" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13321/hovercard" href="https://github.com/apache/druid/pull/13321">#13321</a></p> <h3 dir="auto"><a name="user-content-25-operations-segment-loading-and-balancing-segment-assignment" href="#25-operations-segment-loading-and-balancing-segment-assignment">#</a> Faster segment assignment</h3> <p dir="auto">You can now use a round-robin segment strategy to speed up initial segment assignments. Set <code class="notranslate">useRoundRobinSegmentAssigment</code> to <code class="notranslate">true</code> in the Coordinator dynamic config to enable this feature.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1449242950" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13367" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13367/hovercard" href="https://github.com/apache/druid/pull/13367">#13367</a></p> <h3 dir="auto"><a name="user-content-25-operations-segment-batch-sampling" href="#25-operations-segment-batch-sampling">#</a> Default to batch sampling for balancing segments</h3> <p dir="auto">Batch sampling is now the default method for sampling segments during balancing as it performs significantly better than the alternative when there is a large number of used segments in the cluster.</p> <p dir="auto">As part of this change, the following have been deprecated and will be removed in future releases:</p> <ul dir="auto"> <li>coordinator dynamic config <code class="notranslate">useBatchedSegmentSampler</code></li> <li>coordinator dynamic config <code class="notranslate">percentOfSegmentsToConsiderPerMove</code></li> <li>old non-batch method of sampling segments</li> </ul> <h3 dir="auto"><a name="user-content-25-operations-segment-unused-property" href="#25-operations-segment-unused-property">#</a> Remove unused property</h3> <p dir="auto">The unused coordinator property <code class="notranslate">druid.coordinator.loadqueuepeon.repeatDelay</code> has been removed. Use only <code class="notranslate">druid.coordinator.loadqueuepeon.http.repeatDelay</code> to configure repeat delay for the HTTP-based segment loading queue.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1456992752" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13391" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13391/hovercard" href="https://github.com/apache/druid/pull/13391">#13391</a></p> <h3 dir="auto"><a name="user-content-25-operations-segment-replication" href="#25-operations-segment-replication">#</a> Avoid segment over-replication</h3> <p dir="auto">Improved the process of checking server inventory to prevent over-replication of segments during segment balancing.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1377027344" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13114" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13114/hovercard" href="https://github.com/apache/druid/pull/13114">#13114</a></p> <h2 dir="auto"><a name="user-content-25-operations-provided-service-specific-log4j-overrides-in-containerized-deployments" href="#25-operations-provided-service-specific-log4j-overrides-in-containerized-deployments">#</a> Provided service specific log4j overrides in containerized deployments</h2> <p dir="auto">Provided an option to override log4j configs setup at the service level directories so that it works with Druid-operator based deployments.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1360686267" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13020" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13020/hovercard" href="https://github.com/apache/druid/pull/13020">#13020</a></p> <h2 dir="auto"><a name="user-content-25-operations-various-docker-improvements" href="#25-operations-various-docker-improvements">#</a> Various Docker improvements</h2> <ul dir="auto"> <li>Updated Docker to run with JRE 11 by default.</li> <li>Updated Docker to use <a href="https://github.com/GoogleContainerTools/distroless"><code class="notranslate">gcr.io/distroless/java11-debian11</code></a> image as base by default.</li> <li>Enabled Docker buildkit cache to speed up building.</li> <li>Downloaded <a href="https://github.com/robxu9/bash-static"><code class="notranslate">bash-static</code></a> to the Docker image so that scripts that require bash can be executed.</li> <li>Bumped builder image from <code class="notranslate">3.8.4-jdk-11-slim</code> to <code class="notranslate">3.8.6-jdk-11-slim</code>.</li> <li>Switched busybox from <code class="notranslate">amd64/busybox:1.30.0-glibc</code> to <code class="notranslate">busybox:1.35.0-glibc</code>.</li> <li>Added support to build arm64-based image.</li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1366795791" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13059" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13059/hovercard" href="https://github.com/apache/druid/pull/13059">#13059</a></p> <h2 dir="auto"><a name="user-content-25-operations-enabled-cleaner-json-for-various-input-sources-and-formats" href="#25-operations-enabled-cleaner-json-for-various-input-sources-and-formats">#</a> Enabled cleaner JSON for various input sources and formats</h2> <p dir="auto">Added <code class="notranslate">JsonInclude</code> to various properties, to avoid population of default values in serialized JSON.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1368143209" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13064" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13064/hovercard" href="https://github.com/apache/druid/pull/13064">#13064</a></p> <h2 dir="auto"><a name="user-content-25-operations-improved-direct-memory-check-on-startup" href="#25-operations-improved-direct-memory-check-on-startup">#</a> Improved direct memory check on startup</h2> <p dir="auto">Improved direct memory check on startup by providing better support for Java 9+ in <code class="notranslate">RuntimeInfo</code>, and clearer log messages where validation fails.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1403961849" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13207" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13207/hovercard" href="https://github.com/apache/druid/pull/13207">#13207</a></p> <h2 dir="auto"><a name="user-content-25-operations-improved-the-run-time-of-the-markasunusedovershadowedsegments-duty" href="#25-operations-improved-the-run-time-of-the-markasunusedovershadowedsegments-duty">#</a> Improved the run time of the MarkAsUnusedOvershadowedSegments duty</h2> <p dir="auto">Improved the run time of the <code class="notranslate">MarkAsUnusedOvershadowedSegments</code> duty by iterating over all overshadowed segments and marking segments as unused in batches.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1428367651" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13287" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13287/hovercard" href="https://github.com/apache/druid/pull/13287">#13287</a></p> <h1 dir="auto"><a name="user-content-25-web-console" href="#25-web-console">#</a> Web console</h1> <h2 dir="auto"><a name="user-content-25-web-console-delete-an-interval" href="#25-web-console-delete-an-interval">#</a> Delete an interval</h2> <p dir="auto">You can now pick an interval to delete from a dropdown in the kill task dialog.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1462679298" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13431" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13431/hovercard" href="https://github.com/apache/druid/pull/13431">#13431</a></p> <h2 dir="auto"><a name="user-content-25-web-console-removed-the-old-query-view" href="#25-web-console-removed-the-old-query-view">#</a> Removed the old query view</h2> <p dir="auto">The old query view is removed. Use the new query view with tabs.<br> For more information, see <a href="https://druid.apache.org/docs/latest/operations/web-console.html#query" rel="nofollow">Web console</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1394019727" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13169" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13169/hovercard" href="https://github.com/apache/druid/pull/13169">#13169</a></p> <h2 dir="auto"><a name="user-content-25-web-console-filter-column-values-in-query-results" href="#25-web-console-filter-column-values-in-query-results">#</a> Filter column values in query results</h2> <p dir="auto">The web console now allows you to add to existing filters for a selected column.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1394019727" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13169" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13169/hovercard" href="https://github.com/apache/druid/pull/13169">#13169</a></p> <h2 dir="auto"><a name="user-content-25-web-console-support-for-kafka-lookups" href="#25-web-console-support-for-kafka-lookups">#</a> Support for Kafka lookups in the web-console</h2> <p dir="auto">Added support for Kafka-based lookups rendering and input in the web console.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1375370412" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13098" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13098/hovercard" href="https://github.com/apache/druid/pull/13098">#13098</a></p> <h2 dir="auto"><a name="user-content-25-web-console-query-task-status-information" href="#25-web-console-query-task-status-information">#</a> Query task status information</h2> <p dir="auto">The web console now exposes a textual indication about running and pending tasks when a query is stuck due to lack of task slots.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1430256866" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13291" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13291/hovercard" href="https://github.com/apache/druid/pull/13291">#13291</a></p> <h1 dir="auto"><a name="user-content-25-extensions" href="#25-extensions">#</a> Extensions</h1> <h2 dir="auto"><a name="user-content-25-extensions-extension-optimization" href="#25-extensions-extension-optimization">#</a> Extension optimization</h2> <p dir="auto">Optimized the <code class="notranslate">compareTo</code> function in <code class="notranslate">CompressedBigDecimal</code>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1372268744" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13086" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13086/hovercard" href="https://github.com/apache/druid/pull/13086">#13086</a></p> <h2 dir="auto"><a name="user-content-25-extensions-compressedbigdecimal-cleanup-and-extension" href="#25-extensions-compressedbigdecimal-cleanup-and-extension">#</a> CompressedBigDecimal cleanup and extension</h2> <p dir="auto">Removed unnecessary generic type from CompressedBigDecimal, added support for number input types, added support for reading aggregator input types directly (uningested data), and fixed scaling bug in buffer aggregator.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1365224141" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13048" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13048/hovercard" href="https://github.com/apache/druid/pull/13048">#13048</a></p> <h2 dir="auto"><a name="user-content-25-extensions-support-for-kubernetes-discovery" href="#25-extensions-support-for-kubernetes-discovery">#</a> Support for Kubernetes discovery</h2> <p dir="auto">Added <code class="notranslate">POD_NAME</code> and <code class="notranslate">POD_NAMESPACE</code> env variables to all Kubernetes Deployments and StatefulSets.<br> Helm deployment is now compatible with <code class="notranslate">druid-kubernetes-extension</code>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1422601157" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13262" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13262/hovercard" href="https://github.com/apache/druid/pull/13262">#13262</a></p> <h1 dir="auto"><a name="user-content-25-docs" href="#25-docs">#</a> Docs</h1> <h2 dir="auto"><a name="user-content-25-docs-jupyter-notebook-tutorials" href="#25-docs-jupyter-notebook-tutorials">#</a> Jupyter Notebook tutorials</h2> <p dir="auto">We released our first Jupyter Notebook-based tutorial to learn the basics of the Druid API. Download the notebook and follow along with the tutorial to learn how to get basic cluster information, ingest data, and query data.<br> For more information, see <a href="https://druid.apache.org/docs/latest/tutorials/tutorial-jupyter-index.html" rel="nofollow">Jupyter Notebook tutorials</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1442902277" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13342" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13342/hovercard" href="https://github.com/apache/druid/pull/13342">#13342</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1442978247" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13345" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13345/hovercard" href="https://github.com/apache/druid/pull/13345">#13345</a></p> <h1 dir="auto"><a name="user-content-25-dependency-updates" href="#25-dependency-updates">#</a> Dependency updates</h1> <h2 dir="auto"><a name="user-content-25-dependency-updates-updated-kafka-version" href="#25-dependency-updates-updated-kafka-version">#</a> Updated Kafka version</h2> <p dir="auto">Updated the Apache Kafka core dependency to version 3.3.1.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1395538430" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13176" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13176/hovercard" href="https://github.com/apache/druid/pull/13176">#13176</a></p> <h2 dir="auto"><a name="user-content-25-dependency-updates-docker-improvements" href="#25-dependency-updates-docker-improvements">#</a> Docker improvements</h2> <p dir="auto">Updated dependencies for the Druid image for Docker, including JRE 11. Docker BuildKit cache is enabled to speed up building.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1366795791" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13059" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13059/hovercard" href="https://github.com/apache/druid/pull/13059">#13059</a></p> <h1 dir="auto"><a name="user-content-25-upgrade" href="#25-upgrade">#</a> Upgrading to 25.0.0</h1> <p dir="auto">Consider the following changes and updates when upgrading from Druid 24.0.x to 25.0.0. If you're updating from an earlier version, see the release notes of the relevant intermediate versions.</p> <h2 dir="auto"><a name="user-content-25-upgrade-segment-discovery" href="#25-upgrade-segment-discovery">#</a> Default HTTP-based segment discovery and task management</h2> <p dir="auto">The default segment discovery method now uses HTTP instead of ZooKeeper.</p> <p dir="auto">This update changes the defaults for the following properties:</p> <table role="table"> <thead> <tr> <th>Property</th> <th>New default</th> <th>Previous default</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">druid.serverview.type</code> for segment management</td> <td>http</td> <td>batch</td> </tr> <tr> <td><code class="notranslate">druid.coordinator.loadqueuepeon.type</code> for segment management</td> <td>http</td> <td>curator</td> </tr> <tr> <td><code class="notranslate">druid.indexer.runner.type</code> for the Overlord</td> <td>httpRemote</td> <td>local</td> </tr> </tbody> </table> <p dir="auto">To use ZooKeeper instead of HTTP, change the values for the properties back to the previous defaults. ZooKeeper-based implementations for these properties are deprecated and will be removed in a subsequent release.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1374470464" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13092" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13092/hovercard" href="https://github.com/apache/druid/pull/13092">#13092</a></p> <h2 dir="auto"><a name="user-content-25-upgrade-hll-and-quantiles-sketches" href="#25-upgrade-hll-and-quantiles-sketches">#</a> Finalizing HLL and quantiles sketch aggregates</h2> <p dir="auto">The aggregation functions for HLL and quantiles sketches returned sketches or numbers when they are finalized depending on where they were in the native query plan.</p> <p dir="auto">Druid no longer finalizes aggregators in the following two cases:</p> <ul dir="auto"> <li>aggregators appear in the outer level of a query</li> <li>aggregators are used as input to an expression or finalizing-field-access post-aggregator</li> </ul> <p dir="auto">This change aligns the behavior of HLL and quantiles sketches with theta sketches.</p> <p dir="auto">To restore old behaviour, you can set <code class="notranslate">sqlFinalizeOuterSketches=true</code> in the query context.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1417217739" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13247" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13247/hovercard" href="https://github.com/apache/druid/pull/13247">#13247</a></p> <h2 dir="auto"><a name="user-content-25-upgrade-kill-tasks-mark-unused" href="#25-upgrade-kill-tasks-mark-unused">#</a> Kill tasks mark segments as unused only if specified</h2> <p dir="auto">When you issue a kill task, Druid marks the underlying segments as unused only if explicitly specified. For more information, see the <a href="https://druid.apache.org/docs/latest/operations/api-reference.html#coordinator" rel="nofollow">API reference</a></p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1376628479" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13104" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13104/hovercard" href="https://github.com/apache/druid/pull/13104">#13104</a></p> <h2 dir="auto"><a name="user-content-25-upgrade-incompatible" href="#25-upgrade-incompatible">#</a> Incompatible changes</h2> <h3 dir="auto"><a name="user-content-25-upgrade-incompatible-curator" href="#25-upgrade-incompatible-curator">#</a> Upgrade curator to 5.3.0</h3> <p dir="auto">Apache Curator upgraded to the latest version, 5.3.0. This version drops support for ZooKeeper 3.4 but Druid has already officially dropped support in 0.22. In 5.3.0, Curator has removed support for Exhibitor so all related configurations and tests have been removed.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1347184665" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12939" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12939/hovercard" href="https://github.com/apache/druid/pull/12939">#12939</a></p> <h3 dir="auto"><a name="user-content-25-upgrade-incompatible-parquet" href="#25-upgrade-incompatible-parquet">#</a> Fixed Parquet list conversion</h3> <p dir="auto">The behavior of the parquet reader for lists of structured objects has been changed to be consistent with other parquet logical list conversions. The data is now fetched directly, more closely matching its expected structure. See <a href="#25-ingestion-fixed-parquet-list-conversion">parquet list conversion</a> for more details.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1432293473" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/13294" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/13294/hovercard" href="https://github.com/apache/druid/pull/13294">#13294</a></p> <h1 dir="auto"><a name="user-content-25-credits" href="#25-credits">#</a> Credits</h1> <p dir="auto">Thanks to everyone who contributed to this release!</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/317brian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/317brian">@317brian</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/599166320/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/599166320">@599166320</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/a2l007/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/a2l007">@a2l007</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhagraw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhagraw">@abhagraw</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhishekagarwal87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhishekagarwal87">@abhishekagarwal87</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adarshsanjeev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adarshsanjeev">@adarshsanjeev</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adelcast/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adelcast">@adelcast</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AlexanderSaydakov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AlexanderSaydakov">@AlexanderSaydakov</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amaechler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amaechler">@amaechler</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AmatyaAvadhanula/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AmatyaAvadhanula">@AmatyaAvadhanula</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ApoorvGuptaAi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ApoorvGuptaAi">@ApoorvGuptaAi</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/arvindanugula/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/arvindanugula">@arvindanugula</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/asdf2014/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/asdf2014">@asdf2014</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/churromorales/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/churromorales">@churromorales</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/clintropolis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/clintropolis">@clintropolis</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cloventt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cloventt">@cloventt</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cristian-popa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cristian-popa">@cristian-popa</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cryptoe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cryptoe">@cryptoe</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dampcake/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dampcake">@dampcake</a><br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a>[bot]<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/didip/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/didip">@didip</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ektravel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ektravel">@ektravel</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eshengit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eshengit">@eshengit</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/findingrish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/findingrish">@findingrish</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrankChen021/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrankChen021">@FrankChen021</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gianm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gianm">@gianm</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hnakamor/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hnakamor">@hnakamor</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hosswald/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hosswald">@hosswald</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/imply-cheddar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/imply-cheddar">@imply-cheddar</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jasonk000/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jasonk000">@jasonk000</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jon-wei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jon-wei">@jon-wei</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Junge-401/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Junge-401">@Junge-401</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kfaraz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kfaraz">@kfaraz</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LakshSingla/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LakshSingla">@LakshSingla</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mcbrewster/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mcbrewster">@mcbrewster</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paul-rogers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paul-rogers">@paul-rogers</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/petermarshallio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/petermarshallio">@petermarshallio</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rash67/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rash67">@rash67</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rohangarg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rohangarg">@rohangarg</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sachidananda007/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sachidananda007">@sachidananda007</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/santosh-d3vpl3x/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/santosh-d3vpl3x">@santosh-d3vpl3x</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/senthilkv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/senthilkv">@senthilkv</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/somu-imply/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/somu-imply">@somu-imply</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/techdocsmith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/techdocsmith">@techdocsmith</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tejaswini-imply/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tejaswini-imply">@tejaswini-imply</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vogievetsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vogievetsky">@vogievetsky</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtlim/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtlim">@vtlim</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wcc526/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wcc526">@wcc526</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/writer-jill/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/writer-jill">@writer-jill</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xvrl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xvrl">@xvrl</a><br> @zachjsh</p>
<p dir="auto">Apache Druid 24.0.0 contains over 300 new features, bug fixes, performance enhancements, documentation improvements, and additional test coverage from 67 contributors. <a href="https://github.com/apache/druid/milestone/46">See the complete set of changes for additional details</a>.</p> <h1 dir="auto"><a name="user-content-24.0.0-new-features" href="#24.0.0-new-features">#</a> New Features</h1> <h2 dir="auto"><a name="user-content-24.0.0-new-features-multi-stage-query-task-engine" href="#24.0.0-new-features-multi-stage-query-task-engine">#</a> Multi-stage query task engine</h2> <p dir="auto">SQL-based ingestion for Apache Druid uses a distributed multi-stage query architecture, which includes a query engine called the multi-stage query task engine (MSQ task engine). The MSQ task engine extends Druid's query capabilities, so you can write queries that reference external data as well as perform ingestion with SQL INSERT and REPLACE. Essentially, you can perform SQL-based ingestion instead of using JSON ingestion specs that Druid's native ingestion uses.</p> <p dir="auto">SQL-based ingestion using the multi-stage query task engine is the recommended solution starting in Druid 24.0.0. Alternative ingestion solutions such as native batch and Hadoop-based ingestion systems will still be supported. We recommend you read all known issues and test the feature in a development environment before rolling out in production. Using the multi-stage query task engine with <code class="notranslate">SELECT</code> statements that do not write to a datasource is experimental.</p> <p dir="auto">The extension for it (druid-multi-stage-query) is loaded by default. If you're upgrading from an earlier version of Druid, you'll need to add the extension to druid.extensions.loadlist in your common.runtime.properties file.</p> <p dir="auto">For more information, see the overview for the multi-stage query architecture.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1236771890" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12524" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12524/hovercard" href="https://github.com/apache/druid/pull/12524">#12524</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1189549778" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12386" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12386/hovercard" href="https://github.com/apache/druid/pull/12386">#12386</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1236672587" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12523" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12523/hovercard" href="https://github.com/apache/druid/pull/12523">#12523</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1255824638" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12589" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12589/hovercard" href="https://github.com/apache/druid/pull/12589">#12589</a></p> <h2 dir="auto"><a name="user-content-24.0.0-new-features-nested-columns-" href="#24.0.0-new-features-nested-columns-">#</a> Nested columns</h2> <p dir="auto">Druid now supports directly storing nested data structures in a newly added <code class="notranslate">COMPLEX&lt;json&gt;</code> column type. <code class="notranslate">COMPLEX&lt;json&gt;</code> columns store a copy of the structured data in JSON format as well as specialized internal columns and indexes for nested literal values—<code class="notranslate">STRING</code>, <code class="notranslate">LONG</code>, and <code class="notranslate">DOUBLE</code> types. An optimized virtual column allows Druid to read and filter these values at speeds consistent with standard Druid <code class="notranslate">LONG</code>, <code class="notranslate">DOUBLE</code>, and <code class="notranslate">STRING</code> columns.</p> <p dir="auto">Newly added Druid SQL, native JSON functions, and virtual column allow you to extract, transform, and create <code class="notranslate">COMPLEX&lt;json&gt;</code> values in at query time. You can also use the JSON functions in <code class="notranslate">INSERT</code> and <code class="notranslate">REPLACE</code> statements in SQL-based ingestion, or in a <code class="notranslate">transformSpec</code> in native ingestion as an alternative to using a <code class="notranslate">flattenSpec</code> object to "flatten" nested data for ingestion.</p> <p dir="auto">See <a href="docs/querying/sql-json-functions.md">SQL JSON functions</a>, <a href="docs/misc/math-expr.md#json-functions">native JSON functions</a>, <a href="docs/querying/nested-columns.md">Nested columns</a>, <a href="docs/querying/virtual-columns.md#nested-field-virtual-column">virtual columns</a>, and the <a href="https://github.com/apache/druid/issues/12695" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/12695/hovercard">feature summary</a> for more detail.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1296628212" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12753" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12753/hovercard" href="https://github.com/apache/druid/pull/12753">#12753</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1287844223" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12714" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12714/hovercard" href="https://github.com/apache/druid/pull/12714">#12714</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1296628212" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12753" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12753/hovercard" href="https://github.com/apache/druid/pull/12753">#12753</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1342964436" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12920" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12920/hovercard" href="https://github.com/apache/druid/pull/12920">#12920</a></p> <h2 dir="auto"><a name="user-content-24.0.0-new-features-updated-java-support" href="#24.0.0-new-features-updated-java-support">#</a> Updated Java support</h2> <p dir="auto">Java 11 is fully supported is no longer experimental. Java 17 support is improved.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323179155" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12839" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12839/hovercard" href="https://github.com/apache/druid/pull/12839">#12839</a></p> <h1 dir="auto"><a name="user-content-24.0.0-query-engine-updates" href="#24.0.0-query-engine-updates">#</a> Query engine updates</h1> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-updated-column-indexes-and-query-processing-of-filters" href="#24.0.0-query-engine-updates-updated-column-indexes-and-query-processing-of-filters">#</a> Updated column indexes and query processing of filters</h3> <p dir="auto">Reworked column indexes to be extraordinarily flexible, which will eventually allow us to model a wide range of index types. Added machinery to build the filters that use the updated indexes, while also allowing for other column implementations to implement the built-in index types to provide adapters to make use indexing in the current set filters that Druid provides.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1190250611" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12388" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12388/hovercard" href="https://github.com/apache/druid/pull/12388">#12388</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-time-filter-operator" href="#24.0.0-query-engine-updates-time-filter-operator">#</a> Time filter operator</h3> <p dir="auto">You can now use the Druid SQL operator TIME_IN_INTERVAL to filter query results based on time. Prefer TIME_IN_INTERVAL over the SQL BETWEEN operator to filter on time. For more information, see <a href="docs/querying/sql-scalar.md#date-and-time-functions">Date and time functions</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1273137509" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12662" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12662/hovercard" href="https://github.com/apache/druid/pull/12662">#12662</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-null-values-and-the-%22in%22-filter" href="#24.0.0-query-engine-updates-null-values-and-the-%22in%22-filter">#</a> Null values and the "in" filter</h3> <p dir="auto">If a <code class="notranslate">values</code> array contains <code class="notranslate">null</code>, the "in" filter matches null values. This differs from the SQL IN filter, which does not match null values.</p> <p dir="auto">For more information, see <a href="/docs/querying/filters.md">Query filters</a> and <a href="/docs/querying/sql-data-types.md">SQL data types</a>.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1329092598" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12863" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12863/hovercard" href="https://github.com/apache/druid/pull/12863">#12863</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-virtual-columns-in-search-queries" href="#24.0.0-query-engine-updates-virtual-columns-in-search-queries">#</a> Virtual columns in search queries</h3> <p dir="auto">Previously, a <a href="/docs/querying/searchquery.md">search query</a> could only search on dimensions that existed in the data source. Search queries now support <a href="/docs/querying/virtual-columns.md">virtual columns</a> as a parameter in the query.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1289754739" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12720" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12720/hovercard" href="https://github.com/apache/druid/pull/12720">#12720</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-optimize-simple-min-%2f-max-sql-queries-on-__time" href="#24.0.0-query-engine-updates-optimize-simple-min-%2F-max-sql-queries-on-__time">#</a> Optimize simple MIN / MAX SQL queries on __time</h3> <p dir="auto">Simple queries like <code class="notranslate">select max(__time) from ds</code> now run as a <code class="notranslate">timeBoundary</code> queries to take advantage of the time dimension sorting in a segment. You can set a feature flag to enable this feature.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1212213021" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12472" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12472/hovercard" href="https://github.com/apache/druid/pull/12472">#12472</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218411439" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12491" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12491/hovercard" href="https://github.com/apache/druid/pull/12491">#12491</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-string-aggregation-results" href="#24.0.0-query-engine-updates-string-aggregation-results">#</a> String aggregation results</h3> <p dir="auto">The first/last string aggregator now only compares based on values. Previously, the first/last string aggregator’s values were compared based on the <code class="notranslate">_time</code> column first and then on values.</p> <p dir="auto">If you have existing queries and want to continue using both the <code class="notranslate">_time</code> column and values, update your queries to use ORDER BY MAX(timeCol).</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1303307742" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12773" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12773/hovercard" href="https://github.com/apache/druid/pull/12773">#12773</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-reduced-allocations-due-to-jackson-serialization" href="#24.0.0-query-engine-updates-reduced-allocations-due-to-jackson-serialization">#</a> Reduced allocations due to Jackson serialization</h3> <p dir="auto">Introduced and implemented new helper functions in <code class="notranslate">JacksonUtils</code> to enable reuse of<br> <code class="notranslate">SerializerProvider</code> objects.</p> <p dir="auto">Additionally, disabled backwards compatibility for map-based rows in the <code class="notranslate">GroupByQueryToolChest</code> by default, which eliminates the need to copy the heavyweight <code class="notranslate">ObjectMapper</code>. Introduced a configuration option to allow administrators to explicitly enable backwards compatibility.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1211482815" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12468" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12468/hovercard" href="https://github.com/apache/druid/pull/12468">#12468</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-updated-ipaddress-java-library-" href="#24.0.0-query-engine-updates-updated-ipaddress-java-library-">#</a> Updated IPAddress Java library</h3> <p dir="auto">Added a new <a href="https://github.com/seancfoley/IPAddress">IPAddress</a> Java library dependency to handle IP addresses. The library includes IPv6 support. Additionally, migrated IPv4 functions to use the new library.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="979460652" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/11634" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/11634/hovercard" href="https://github.com/apache/druid/pull/11634">#11634</a></p> <h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-query-performance-improvements" href="#24.0.0-query-engine-updates-query-performance-improvements">#</a> Query performance improvements</h3> <p dir="auto">Optimized SQL operations and functions as follows:</p> <ul dir="auto"> <li>Vectorized numeric latest aggregators (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1205360729" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12439" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12439/hovercard" href="https://github.com/apache/druid/pull/12439">#12439</a>)</li> <li>Optimized <code class="notranslate">isEmpty()</code> and <code class="notranslate">equals()</code> on RangeSets (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1213226111" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12477" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12477/hovercard" href="https://github.com/apache/druid/pull/12477">#12477</a>)</li> <li>Optimized reuse of Yielder objects (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1212695856" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12475" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12475/hovercard" href="https://github.com/apache/druid/pull/12475">#12475</a>)</li> <li>Operations on numeric columns with indexes are now faster (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1320361574" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12830" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12830/hovercard" href="https://github.com/apache/druid/pull/12830">#12830</a>)</li> <li>Optimized GroupBy by reducing allocations. Reduced allocations by reusing entry and key holders (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1212596980" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12474" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12474/hovercard" href="https://github.com/apache/druid/pull/12474">#12474</a>)</li> <li>Added a vectorized version of string last aggregator (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1220093622" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12493" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12493/hovercard" href="https://github.com/apache/druid/pull/12493">#12493</a>)</li> <li>Added Direct UTF-8 access for IN filters (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1234652515" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12517" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12517/hovercard" href="https://github.com/apache/druid/pull/12517">#12517</a>)</li> <li>Enabled virtual columns to cache their outputs in case Druid calls them multiple times on the same underlying row (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1251979306" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12577" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12577/hovercard" href="https://github.com/apache/druid/pull/12577">#12577</a>)</li> <li>Druid now rewrites a join as a filter when possible in IN joins (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1122084186" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12225" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12225/hovercard" href="https://github.com/apache/druid/pull/12225">#12225</a>)</li> <li>Added automatic sizing for GroupBy dictionaries (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1299561167" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12763" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12763/hovercard" href="https://github.com/apache/druid/pull/12763">#12763</a>)</li> <li>Druid now distributes JDBC connections more evenly amongst brokers (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1316509865" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12817" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12817/hovercard" href="https://github.com/apache/druid/pull/12817">#12817</a>)</li> </ul> <h2 dir="auto"><a name="user-content-24.0.0-streaming-ingestion" href="#24.0.0-streaming-ingestion">#</a> Streaming ingestion</h2> <h3 dir="auto"><a name="user-content-24.0.0-streaming-ingestion-kafka-consumers" href="#24.0.0-streaming-ingestion-kafka-consumers">#</a> Kafka consumers</h3> <p dir="auto">Previously, consumers that were registered and used for ingestion persisted until Kafka deleted them. They were only used to make sure that an entire topic was consumed. There are no longer consumer groups that linger.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323782021" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12842" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12842/hovercard" href="https://github.com/apache/druid/pull/12842">#12842</a></p> <h3 dir="auto"><a name="user-content-24.0.0-streaming-ingestion-kinesis-ingestion" href="#24.0.0-streaming-ingestion-kinesis-ingestion">#</a> Kinesis ingestion</h3> <p dir="auto">You can now perform Kinesis ingestion even if there are empty shards. Previously, all shards had to have at least one record.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1305780684" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12792" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12792/hovercard" href="https://github.com/apache/druid/pull/12792">#12792</a></p> <h2 dir="auto"><a name="user-content-24.0.0-batch-ingestion" href="#24.0.0-batch-ingestion">#</a> Batch ingestion</h2> <h3 dir="auto"><a name="user-content-24.0.0-batch-ingestion-batch-ingestion-from-s3" href="#24.0.0-batch-ingestion-batch-ingestion-from-s3">#</a> Batch ingestion from S3</h3> <p dir="auto">You can now ingest data from endpoints that are different from your default S3 endpoint and signing region.<br> For more information, see <a href="../development/extensions-core/s3.md#connecting-to-s3-configuration">S3 config</a>.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1025792140" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/11798" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/11798/hovercard" href="https://github.com/apache/druid/pull/11798">#11798</a></p> <h2 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general" href="#24.0.0-improvements-to-ingestion-in-general">#</a> Improvements to ingestion in general</h2> <p dir="auto">This release includes the following improvements for ingestion in general.</p> <h3 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general-increased-robustness-for-task-management" href="#24.0.0-improvements-to-ingestion-in-general-increased-robustness-for-task-management">#</a> Increased robustness for task management</h3> <p dir="auto">Added <code class="notranslate">setNumProcessorsPerTask</code> to prevent various automatically-sized thread pools from becoming unreasonably large. It isn't ideal for each task to size its pools as if it is the only process on the entire machine. On large machines, this solves a common cause of <code class="notranslate">OutOfMemoryError</code> due to "unable to create native thread".</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1256365896" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12592" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12592/hovercard" href="https://github.com/apache/druid/pull/12592">#12592</a></p> <h3 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general-avatica-jdbc-driver" href="#24.0.0-improvements-to-ingestion-in-general-avatica-jdbc-driver">#</a> Avatica JDBC driver</h3> <p dir="auto">The JDBC driver now follows the JDBC standard and uses two kinds of statements, Statement and PreparedStatement.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1284829130" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12709" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12709/hovercard" href="https://github.com/apache/druid/pull/12709">#12709</a></p> <h3 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general-eight-hour-granularity" href="#24.0.0-improvements-to-ingestion-in-general-eight-hour-granularity">#</a> Eight hour granularity</h3> <p dir="auto">Druid now accepts the <code class="notranslate">EIGHT_HOUR</code> granularity. You can segment incoming data to <code class="notranslate">EIGHT_HOUR</code> buckets as well as group query results by eight hour granularity.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1289324454" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12717" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12717/hovercard" href="https://github.com/apache/druid/pull/12717">#12717</a></p> <h2 dir="auto"><a name="user-content-24.0.0-ingestion-general" href="#24.0.0-ingestion-general">#</a> Ingestion general</h2> <h3 dir="auto"><a name="user-content-24.0.0-ingestion-general-updated-avro-extension" href="#24.0.0-ingestion-general-updated-avro-extension">#</a> Updated Avro extension</h3> <p dir="auto">The previous Avro extension leaked objects from the parser. If these objects leaked into your ingestion, you had objects being stored as a string column with the value as the .toString(). This string column will remain after you upgrade but will return <code class="notranslate">Map.toString()</code> instead of <code class="notranslate">GenericRecord.toString</code>. If you relied on the previous behavior, you can use the Avro extension from an earlier release.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1319676962" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12828" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12828/hovercard" href="https://github.com/apache/druid/pull/12828">#12828</a></p> <h3 dir="auto"><a name="user-content-24.0.0-ingestion-general-sampler-api" href="#24.0.0-ingestion-general-sampler-api">#</a> Sampler API</h3> <p dir="auto">The sampler API has additional limits: <code class="notranslate">maxBytesInMemory</code> and <code class="notranslate">maxClientResponseBytes</code>. These options augment the existing options <code class="notranslate">numRows</code> and <code class="notranslate">timeoutMs</code>. <code class="notranslate">maxBytesInMemory</code> can be used to control the memory usage on the Overlord while sampling. <code class="notranslate">maxClientResponseBytes</code> can be used by clients to specify the maximum size of response they would prefer to handle.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1347809718" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12947" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12947/hovercard" href="https://github.com/apache/druid/pull/12947">#12947</a></p> <h2 dir="auto"><a name="user-content-24.0.0-sql" href="#24.0.0-sql">#</a> SQL</h2> <h3 dir="auto"><a name="user-content-24.0.0-sql-column-order" href="#24.0.0-sql-column-order">#</a> Column order</h3> <p dir="auto">The <code class="notranslate">DruidSchema</code> and <code class="notranslate">SegmentMetadataQuery</code> properties now preserve column order instead of ordering columns alphabetically. This means that query order better matches ingestion order.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1296712330" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12754" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12754/hovercard" href="https://github.com/apache/druid/pull/12754">#12754</a></p> <h3 dir="auto"><a name="user-content-24.0.0-sql-converting-joins-to-filter" href="#24.0.0-sql-converting-joins-to-filter">#</a> Converting JOINs to filter</h3> <p dir="auto">You can improve performance by pushing JOINs partially or fully to the base table as a filter at runtime by setting the <code class="notranslate">enableRewriteJoinToFilter</code> context parameter to <code class="notranslate">true</code> for a query.</p> <p dir="auto">Druid now pushes down join filters in case the query computing join references any columns from the right side.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1295910535" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12749" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12749/hovercard" href="https://github.com/apache/druid/pull/12749">#12749</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1329692382" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12868" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12868/hovercard" href="https://github.com/apache/druid/pull/12868">#12868</a></p> <h3 dir="auto"><a name="user-content-24.0.0-sql-add-is_active-to-sys.segments" href="#24.0.0-sql-add-is_active-to-sys.segments">#</a> Add is_active to sys.segments</h3> <p dir="auto">Added <code class="notranslate">is_active</code> as shorthand for <code class="notranslate">(is_published = 1 AND is_overshadowed = 0) OR is_realtime = 1)</code>. This represents "all the segments that should be queryable, whether or not they actually are right now".</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="961092430" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/11550" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/11550/hovercard" href="https://github.com/apache/druid/pull/11550">#11550</a></p> <h3 dir="auto"><a name="user-content-24.0.0-sql-%60usenativequeryexplain%60-now-defaults-to-true" href="#24.0.0-sql-%60usenativequeryexplain%60-now-defaults-to-true">#</a> <code class="notranslate">useNativeQueryExplain</code> now defaults to true</h3> <p dir="auto">The <code class="notranslate">useNativeQueryExplain</code> property now defaults to <code class="notranslate">true</code>. This means that EXPLAIN PLAN FOR returns the explain plan as a JSON representation of equivalent native query(s) by default. For more information, see <a href="/docs/configuration/index.md">Broker Generated Query Configuration Supplementation</a>.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1346470370" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12936" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12936/hovercard" href="https://github.com/apache/druid/pull/12936">#12936</a></p> <h3 dir="auto"><a name="user-content-24.0.0-inline-query-engine" href="#24.0.0-inline-query-engine">#</a> Running queries with inline data using druid query engine</h3> <p dir="auto">Some queries that do not refer to any table, such as <code class="notranslate">select 1</code>, are now always translated to a native Druid query with <code class="notranslate">InlineDataSource</code> before execution. If translation is not possible, for queries such as <code class="notranslate">SELECT (1, 2)</code>, then an error occurs. In earlier versions, this query would still run.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1337007651" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12897" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12897/hovercard" href="https://github.com/apache/druid/pull/12897">#12897</a></p> <h2 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord" href="#24.0.0-coordinator%2Foverlord">#</a> Coordinator/Overlord</h2> <h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-you-can-configure-the-coordinator-to-kill-segments-in-the-future" href="#24.0.0-coordinator%2Foverlord-you-can-configure-the-coordinator-to-kill-segments-in-the-future">#</a> You can configure the Coordinator to kill segments in the future</h3> <p dir="auto">You can now set <code class="notranslate">druid.coordinator.kill.durationToRetain</code> to a negative period to configure the Druid cluster to kill segments whose <code class="notranslate">interval_end</code> is a date in the future. For example, PT-24H would allow segments to be killed if their interval_end date was 24 hours or less into the future at the time that the kill task is generated by the system.<br> A cluster operator can also disregard the <code class="notranslate">druid.coordinator.kill.durationToRetain</code> entirely by setting a new configuration, <code class="notranslate">druid.coordinator.kill.ignoreDurationToRetain=true</code>. This ignores <code class="notranslate">interval_end</code> date when looking for segments to kill, and can instead kill any segment marked unused. This new configuration is turned off by default, and a cluster operator should fully understand and accept the risks before enabling it.</p> <h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-improved-overlord-stability" href="#24.0.0-coordinator%2Foverlord-improved-overlord-stability">#</a> Improved Overlord stability</h3> <p dir="auto">Reduced contention between the management thread and the reception of status updates from the cluster. This improves the stability of Overlord and all tasks in a cluster when there are large (1000+) task counts.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1089495362" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12099" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12099/hovercard" href="https://github.com/apache/druid/pull/12099">#12099</a></p> <h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-improved-coordinator-segment-logging" href="#24.0.0-coordinator%2Foverlord-improved-coordinator-segment-logging">#</a> Improved Coordinator segment logging</h3> <p dir="auto">Updated Coordinator load rule logging to include current replication levels. Added missing segment ID and tier information from some of the log messages.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1232406118" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12511" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12511/hovercard" href="https://github.com/apache/druid/pull/12511">#12511</a></p> <h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-optimized-overlord-get-tasks-memory-usage" href="#24.0.0-coordinator%2Foverlord-optimized-overlord-get-tasks-memory-usage">#</a> Optimized overlord GET tasks memory usage</h3> <p dir="auto">Addressed the significant memory overhead caused by the web-console indirectly calling the Overlord’s GET tasks API. This could cause unresponsiveness or Overlord failure when the ingestion tab was opened multiple times.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1194698511" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12404" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12404/hovercard" href="https://github.com/apache/druid/pull/12404">#12404</a></p> <h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-reduced-time-to-create-intervals" href="#24.0.0-coordinator%2Foverlord-reduced-time-to-create-intervals">#</a> Reduced time to create intervals</h3> <p dir="auto">In order to optimize segment cost computation time by reducing time taken for interval creation, store segment interval instead of creating it each time from primitives and reduce memory overhead of storing intervals by interning them. The set of intervals for segments is low in cardinality.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1274953108" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12670" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12670/hovercard" href="https://github.com/apache/druid/pull/12670">#12670</a></p> <h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord" href="#24.0.0--brokers%2Foverlord">#</a> Brokers/Overlord</h2> <p dir="auto">Brokers now have a default of 25MB maximum queued per query. Previously, there was no default limit. Depending on your use case, you may need to increase the value, especially if you have large result sets or large amounts of intermediate data. To adjust the maximum memory available, use the <code class="notranslate">druid.broker.http.maxQueuedBytes</code> property.<br> For more information, see <a href="docs/configuration/index.md">Configuration reference</a>.</p> <h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console" href="#24.0.0--brokers%2Foverlord-web-console">#</a> Web console</h2> <blockquote> <p dir="auto">Prepare to have your Web Console experience elevated! - <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vogievetsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vogievetsky">@vogievetsky</a></p> </blockquote> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support">#</a> New query view (WorkbenchView) with tabs and long running query support</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309077-8840ff85-19a9-4fc0-8398-4f2446ff29b3.png"><img src="https://user-images.githubusercontent.com/177816/185309077-8840ff85-19a9-4fc0-8398-4f2446ff29b3.png" alt="" style="max-width: 100%;"></a></p> <p dir="auto">You can use the new query view to execute multi-stage, task based, queries with the /druid/v2/sql/task and /druid/indexer/v1/task/* APIs as well as native and sql-native queries just like the old Query view. A key point of the sql-msq-task based queries is that they may run for a long time. This inspired / necessitated many UX changes including, but not limited to the following:</p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-tabs" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-tabs">#</a> Tabs</h4> <p dir="auto">You can now have many queries stored and running at the same time, significantly improving the query view UX.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309114-fe82cccd-a917-415c-a394-a3485403226d.png"><img src="https://user-images.githubusercontent.com/177816/185309114-fe82cccd-a917-415c-a394-a3485403226d.png" alt="" style="max-width: 100%;"></a></p> <p dir="auto">You can open several tabs, duplicate them, and copy them as text to paste into any console and reopen there.</p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-progress-reports-%28counter-reports%29" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-progress-reports-%28counter-reports%29">#</a> Progress reports (counter reports)</h4> <p dir="auto">Queries run with the multi-stage query task engine have detailed progress reports shown in the summary progress bar and the in detail execution table that provides summaries of the counters for every step.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309244-cba3d640-c48a-49bd-8c72-ed3e842b0cb2.png"><img src="https://user-images.githubusercontent.com/177816/185309244-cba3d640-c48a-49bd-8c72-ed3e842b0cb2.png" alt="" style="max-width: 100%;"></a></p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-error-and-warning-reports" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-error-and-warning-reports">#</a> Error and warning reports</h4> <p dir="auto">Queries run with the multi-stage query task engine present user friendly warnings and errors should anything go wrong.<br> The new query view has components to visualize these with their full detail including a stack-trace.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309488-421e7410-251d-4590-88f1-92fb23f4be13.png"><img src="https://user-images.githubusercontent.com/177816/185309488-421e7410-251d-4590-88f1-92fb23f4be13.png" alt="" style="max-width: 100%;"></a></p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-recent-query-tasks-panel" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-recent-query-tasks-panel">#</a> Recent query tasks panel</h4> <p dir="auto">Queries run with the multi-stage query task engine are tasks. This makes it possible to show queries that are executing currently and that have executed in the recent past.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309579-e2ce021c-6bf6-4576-bdee-ff552e1c4c3b.png"><img src="https://user-images.githubusercontent.com/177816/185309579-e2ce021c-6bf6-4576-bdee-ff552e1c4c3b.png" alt="" style="max-width: 100%;"></a></p> <p dir="auto">For any query in the Recent query tasks panel you can view the execution details for it and you can also attach it as a new tab and continue iterating on the query. It is also possible to download the "query detail archive", a JSON file containing all the important details for a given query to use for troubleshooting.</p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-connect-external-data-flow" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-connect-external-data-flow">#</a> Connect external data flow</h4> <p dir="auto">Connect external data flow lets you use the sampler to sample your source data to, determine its schema and generate a fully formed SQL query that you can edit to fit your use case before you launch your ingestion job. This point-and-click flow will save you much typing.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309631-5ceed7d0-2bb2-43b9-83ed-fdcad4a152be.png"><img src="https://user-images.githubusercontent.com/177816/185309631-5ceed7d0-2bb2-43b9-83ed-fdcad4a152be.png" alt="" style="max-width: 100%;"></a></p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-preview-button" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-preview-button">#</a> Preview button</h4> <p dir="auto">The Preview button appears when you type in an INSERT or REPLACE SQL query. Click the button to remove the INSERT or REPLACE clause and execute your query as an "inline" query with a limi). This gives you a sense of the shape of your data after Druid applies all your transformations from your SQL query.</p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-results-table" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-results-table">#</a> Results table</h4> <p dir="auto">The query results table has been improved in style and function. It now shows you type icons for the column types and supports the ability to manipulate nested columns with ease.</p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-helper-queries" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-helper-queries">#</a> Helper queries</h4> <p dir="auto">The Web Console now has some UI affordances for notebook and CTE users. You can reference helper queries, collapsable elements that hold a query, from the main query just like they were defined with a WITH statement. When you are composing a complicated query, it is helpful to break it down into multiple queries to preview the parts individually.</p> <h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-additional-web-console-tools" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-additional-web-console-tools">#</a> Additional Web Console tools</h4> <p dir="auto">More tools are available from the ... menu:</p> <ul dir="auto"> <li>Explain query - show the query plan for sql-native and multi-stage query task engine queries.</li> <li>Convert ingestion spec to SQL - Helps you migrate your native batch and Hadoop based specs to the SQL-based format.</li> <li>Open query detail archive - lets you open a query detail archive downloaded earlier.</li> <li>Load demo queries - lets you load a set of pre-made queries to play around with multi-stage query task engine functionality.</li> </ul> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-sql-based-data-loader" href="#24.0.0--brokers%2Foverlord-web-console-new-sql-based-data-loader">#</a> New SQL-based data loader</h3> <p dir="auto">The data loader exists as a GUI wizard to help users craft a JSON ingestion spec using point and click and quick previews. The SQL data loader is the SQL-based ingestion analog of that.</p> <p dir="auto">Like the native based data loader, the SQL-based data loader stores all the state in the SQL query itself. You can opt to manipulate the query directly at any stage. See (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1342627344" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12919" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12919/hovercard" href="https://github.com/apache/druid/pull/12919">#12919</a>) for more information about how the data loader differs from the <strong>Connect external data</strong> workflow.</p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-other-changes-and-improvements" href="#24.0.0--brokers%2Foverlord-web-console-other-changes-and-improvements">#</a> Other changes and improvements</h3> <ul dir="auto"> <li>The query view has so much new functionality that it has moved to the far left as the first view available in the header.</li> <li>You can now click on a datasource or segment to see a preview of the data within.</li> <li>The task table now explicitly shows if a task has been canceled in a different color than a failed task.</li> <li>The user experience when you view a JSON payload in the Druid console has been improved. There’s now syntax highlighting and a search.</li> <li>The Druid console can now use the column order returned by a scan query to determine the column order for reindexing data.</li> <li>The way errors are displayed in the Druid console has been improved. Errors no longer appear as a single long line.</li> </ul> <p dir="auto">See (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1342627344" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12919" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12919/hovercard" href="https://github.com/apache/druid/pull/12919">#12919</a>) for more details and other improvements</p> <h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics" href="#24.0.0--brokers%2Foverlord-metrics">#</a> Metrics</h2> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-sysmonitor-stats-for-peons" href="#24.0.0--brokers%2Foverlord-metrics-sysmonitor-stats-for-peons">#</a> Sysmonitor stats for Peons</h3> <p dir="auto">Sysmonitor stats, like memory or swap, are no longer reported since Peons always run on the same host as MiddleManagerse. This means that duplicate stats will no longer be reported.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1309337591" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12802" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12802/hovercard" href="https://github.com/apache/druid/pull/12802">#12802</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-prometheus-" href="#24.0.0--brokers%2Foverlord-metrics-prometheus-">#</a> Prometheus</h3> <p dir="auto">You can now include the host and service as labels for Prometheus by setting the following properties to true:</p> <ul dir="auto"> <li><code class="notranslate">druid.emitter.prometheus.addHostAsLabel</code></li> <li><code class="notranslate">druid.emitter.prometheus.addServiceAsLabel</code></li> <li></li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1300524227" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12769" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12769/hovercard" href="https://github.com/apache/druid/pull/12769">#12769</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-rows-per-segment" href="#24.0.0--brokers%2Foverlord-metrics-rows-per-segment">#</a> Rows per segment</h3> <p dir="auto">(Experimental) You can now see the average number of rows in a segment and the distribution of segments in predefined buckets with the following metrics: <code class="notranslate">segment/rowCount/avg</code> and <code class="notranslate">segment/rowCount/range/count</code>.<br> Enable the metrics with the following property: <code class="notranslate">org.apache.druid.server.metrics.SegmentStatsMonitor</code><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1291706327" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12730" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12730/hovercard" href="https://github.com/apache/druid/pull/12730">#12730</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-new-%60sqlquery%2fplanningtimems%60-metric" href="#24.0.0--brokers%2Foverlord-metrics-new-%60sqlquery%2Fplanningtimems%60-metric">#</a> New <code class="notranslate">sqlQuery/planningTimeMs</code> metric</h3> <p dir="auto">There’s a new <code class="notranslate">sqlQuery/planningTimeMs</code> metric for SQL queries that computes the time it takes to build a native query from a SQL query.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1343713350" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12923" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12923/hovercard" href="https://github.com/apache/druid/pull/12923">#12923</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-statsd-metrics-reporter" href="#24.0.0--brokers%2Foverlord-metrics-statsd-metrics-reporter">#</a> StatsD metrics reporter</h3> <p dir="auto">The StatsD metrics reporter extension now includes the following metrics:</p> <ul dir="auto"> <li>coordinator/time</li> <li>coordinator/global/time</li> <li>tier/required/capacity</li> <li>tier/total/capacity</li> <li>tier/replication/factor</li> <li>tier/historical/count</li> <li>compact/task/count</li> <li>compactTask/maxSlot/count</li> <li>compactTask/availableSlot/count</li> <li>segment/waitCompact/bytes</li> <li>segment/waitCompact/count</li> <li>interval/waitCompact/count</li> <li>segment/skipCompact/bytes</li> <li>segment/skipCompact/count</li> <li>interval/skipCompact/count</li> <li>segment/compacted/bytes</li> <li>segment/compacted/count</li> <li>interval/compacted/count<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1299553392" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12762" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12762/hovercard" href="https://github.com/apache/druid/pull/12762">#12762</a></li> </ul> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-new-worker-level-task-metrics" href="#24.0.0--brokers%2Foverlord-metrics-new-worker-level-task-metrics">#</a> New worker level task metrics</h3> <p dir="auto">Added a new monitor, <code class="notranslate">WorkerTaskCountStatsMonitor</code>, that allows each middle manage worker to report metrics for successful / failed tasks, and task slot usage.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1206749338" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12446" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12446/hovercard" href="https://github.com/apache/druid/pull/12446">#12446</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-improvements-to-the-jvmmonitor" href="#24.0.0--brokers%2Foverlord-metrics-improvements-to-the-jvmmonitor">#</a> Improvements to the JvmMonitor</h3> <p dir="auto">The JvmMonitor can now handle more generation and collector scenarios. The monitor is more robust and works properly for ZGC on both Java 11 and 15.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1211484579" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12469" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12469/hovercard" href="https://github.com/apache/druid/pull/12469">#12469</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-garbage-collection" href="#24.0.0--brokers%2Foverlord-metrics-garbage-collection">#</a> Garbage collection</h3> <p dir="auto">Garbage collection metrics now use MXBeans.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1214379882" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12481" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12481/hovercard" href="https://github.com/apache/druid/pull/12481">#12481</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-metric-for-task-duration-in-the-pending-queue" href="#24.0.0--brokers%2Foverlord-metrics-metric-for-task-duration-in-the-pending-queue">#</a> Metric for task duration in the pending queue</h3> <p dir="auto">Introduced the metric <code class="notranslate">task/pending/time</code> to measure how long a task stays in the pending queue.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1219462241" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12492" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12492/hovercard" href="https://github.com/apache/druid/pull/12492">#12492</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-emit-metrics-object-for-scan%2c-timeseries%2c-and-groupby-queries-during-cursor-creation" href="#24.0.0--brokers%2Foverlord-metrics-emit-metrics-object-for-scan%2C-timeseries%2C-and-groupby-queries-during-cursor-creation">#</a> Emit metrics object for Scan, Timeseries, and GroupBy queries during cursor creation</h3> <p dir="auto">Adds vectorized metric for scan, timeseries and groupby queries.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1215624959" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12484" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12484/hovercard" href="https://github.com/apache/druid/pull/12484">#12484</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-emit-state-of-replace-and-append-for-native-batch-tasks" href="#24.0.0--brokers%2Foverlord-metrics-emit-state-of-replace-and-append-for-native-batch-tasks">#</a> Emit state of replace and append for native batch tasks</h3> <p dir="auto">Druid now emits metrics so you can monitor and assess the use of different types of batch ingestion, in particular replace and tombstone creation.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218106564" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12488" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12488/hovercard" href="https://github.com/apache/druid/pull/12488">#12488</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323574408" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12840" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12840/hovercard" href="https://github.com/apache/druid/pull/12840">#12840</a></p> <h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-kafkaemitter-emits-%60querytype%60" href="#24.0.0--brokers%2Foverlord-metrics-kafkaemitter-emits-%60querytype%60">#</a> KafkaEmitter emits <code class="notranslate">queryType</code></h3> <p dir="auto">The KafkaEmitter now properly emits the <code class="notranslate">queryType</code> property for native queries.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1341820467" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12915" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12915/hovercard" href="https://github.com/apache/druid/pull/12915">#12915</a></p> <h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-security" href="#24.0.0--brokers%2Foverlord-security">#</a> Security</h2> <p dir="auto">You can now hide properties that are sensitive in the API response from <code class="notranslate">/status/properties</code>, such as S3 access keys. Use the <code class="notranslate">druid.server.hiddenProperties</code> property in <code class="notranslate">common.runtime.properties</code> to specify the properties (case insensitive) you want to hide.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1348473346" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12950" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12950/hovercard" href="https://github.com/apache/druid/pull/12950">#12950</a></p> <h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-other-changes" href="#24.0.0--brokers%2Foverlord-other-changes">#</a> Other changes</h2> <ul dir="auto"> <li>You can now configure the retention period for request logs stored on disk with the <code class="notranslate">druid.request.logging.durationToRetain</code> property. Set the retention period to be longer than <code class="notranslate">P1D</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1244467642" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12559" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12559/hovercard" href="https://github.com/apache/druid/pull/12559">#12559</a>)</li> <li>You can now specify liveness and readiness probe delays for the historical StatefulSet in your values.yaml file. The default is 60 seconds (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1310370387" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12805" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12805/hovercard" href="https://github.com/apache/druid/pull/12805">#12805</a>)</li> <li>Improved exception message for native binary operators (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1169781450" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12335" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12335/hovercard" href="https://github.com/apache/druid/pull/12335">#12335</a>)</li> <li>​​Improved error messages when URI points to a file that doesn't exist (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218306969" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12490" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12490/hovercard" href="https://github.com/apache/druid/pull/12490">#12490</a>)</li> <li>​​Improved build performance of modules (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1216689779" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12486" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12486/hovercard" href="https://github.com/apache/druid/pull/12486">#12486</a>)</li> <li>Improved lookups made using the druid-kafka-extraction-namespace extension to handle records that have been deleted from a kafka topic (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1317720242" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12819" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12819/hovercard" href="https://github.com/apache/druid/pull/12819">#12819</a>)</li> <li>Updated core Apache Kafka dependencies to 3.2.0 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1240594543" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12538" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12538/hovercard" href="https://github.com/apache/druid/pull/12538">#12538</a>)</li> <li>Updated ORC to 1.7.5 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1274556347" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12667" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12667/hovercard" href="https://github.com/apache/druid/pull/12667">#12667</a>)</li> <li>Updated Jetty to 9.4.41.v20210516 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1267390528" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12629" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12629/hovercard" href="https://github.com/apache/druid/pull/12629">#12629</a>)</li> <li>Added <code class="notranslate">Zstandard</code> compression library to <code class="notranslate">CompressionStrategy</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1195275557" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12408" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12408/hovercard" href="https://github.com/apache/druid/pull/12408">#12408</a>)</li> <li>Updated the default gzip buffer size to 8 KB to for improved performance (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1251980114" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12579" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12579/hovercard" href="https://github.com/apache/druid/pull/12579">#12579</a>)</li> <li>Updated the default <code class="notranslate">inputSegmentSizeBytes</code> in Compaction configuration to 100,000,000,000,000 (~100TB)</li> </ul> <h1 dir="auto"><a name="user-content-24.0.0-bug-fixes" href="#24.0.0-bug-fixes">#</a> Bug fixes</h1> <p dir="auto">Druid 24.0 contains over 68 bug fixes. You can find the complete list <a href="https://github.com/apache/druid/issues?q=is%3Aclosed+label%3ABug+milestone%3A24.0.0+">here</a></p> <h1 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0" href="#24.0.0-upgrading-to-24.0">#</a> Upgrading to 24.0</h1> <h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-permissions-for-multi-stage-query-engine" href="#24.0.0-upgrading-to-24.0-permissions-for-multi-stage-query-engine">#</a> Permissions for multi-stage query engine</h2> <p dir="auto">To read external data using the multi-stage query task engine, you must have READ permissions for the <a href="/docs/operations/security-user-auth.md">EXTERNAL resource type</a>. Users without the correct permission encounter a 403 error when trying to run SQL queries that include EXTERN.</p> <p dir="auto">The way you assign the permission depends on your authorizer. For example, with [basic security]((/docs/development/extensions-core/druid-basic-security.md) in Druid, add the <code class="notranslate">EXTERNAL READ</code> permission by sending a <code class="notranslate">POST</code> request to the <a href="/docs/development/extensions-core/druid-basic-security.md#permissions">roles API</a>.</p> <p dir="auto">The example adds permissions for users with the <code class="notranslate">admin</code> role using a basic authorizer named <code class="notranslate">MyBasicMetadataAuthorizer</code>. The following permissions are granted:</p> <ul dir="auto"> <li>DATASOURCE READ</li> <li>DATASOURCE WRITE</li> <li>CONFIG READ</li> <li>CONFIG WRITE</li> <li>STATE READ</li> <li>STATE WRITE</li> <li>EXTERNAL READ</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl --location --request POST 'http://localhost:8081/druid-ext/basic-security/authorization/db/MyBasicMetadataAuthorizer/roles/admin/permissions' \ --header 'Content-Type: application/json' \ --data-raw '[ { &quot;resource&quot;: { &quot;name&quot;: &quot;.*&quot;, &quot;type&quot;: &quot;DATASOURCE&quot; }, &quot;action&quot;: &quot;READ&quot; }, { &quot;resource&quot;: { &quot;name&quot;: &quot;.*&quot;, &quot;type&quot;: &quot;DATASOURCE&quot; }, &quot;action&quot;: &quot;WRITE&quot; }, { &quot;resource&quot;: { &quot;name&quot;: &quot;.*&quot;, &quot;type&quot;: &quot;CONFIG&quot; }, &quot;action&quot;: &quot;READ&quot; }, { &quot;resource&quot;: { &quot;name&quot;: &quot;.*&quot;, &quot;type&quot;: &quot;CONFIG&quot; }, &quot;action&quot;: &quot;WRITE&quot; }, { &quot;resource&quot;: { &quot;name&quot;: &quot;.*&quot;, &quot;type&quot;: &quot;STATE&quot; }, &quot;action&quot;: &quot;READ&quot; }, { &quot;resource&quot;: { &quot;name&quot;: &quot;.*&quot;, &quot;type&quot;: &quot;STATE&quot; }, &quot;action&quot;: &quot;WRITE&quot; }, { &quot;resource&quot;: { &quot;name&quot;: &quot;EXTERNAL&quot;, &quot;type&quot;: &quot;EXTERNAL&quot; }, &quot;action&quot;: &quot;READ&quot; } ]'"><pre class="notranslate"><code class="notranslate">curl --location --request POST 'http://localhost:8081/druid-ext/basic-security/authorization/db/MyBasicMetadataAuthorizer/roles/admin/permissions' \ --header 'Content-Type: application/json' \ --data-raw '[ { "resource": { "name": ".*", "type": "DATASOURCE" }, "action": "READ" }, { "resource": { "name": ".*", "type": "DATASOURCE" }, "action": "WRITE" }, { "resource": { "name": ".*", "type": "CONFIG" }, "action": "READ" }, { "resource": { "name": ".*", "type": "CONFIG" }, "action": "WRITE" }, { "resource": { "name": ".*", "type": "STATE" }, "action": "READ" }, { "resource": { "name": ".*", "type": "STATE" }, "action": "WRITE" }, { "resource": { "name": "EXTERNAL", "type": "EXTERNAL" }, "action": "READ" } ]' </code></pre></div> <h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-behavior-for-unused-segments" href="#24.0.0-upgrading-to-24.0-behavior-for-unused-segments">#</a> Behavior for unused segments</h2> <p dir="auto">Druid automatically retains any segments marked as unused. Previously, Druid permanently deleted unused segments from metadata store and deep storage after their duration to retain passed. This behavior was reverted from <code class="notranslate">0.23.0</code>.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1280786117" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12693" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12693/hovercard" href="https://github.com/apache/druid/pull/12693">#12693</a></p> <h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-default-for-%60druid.processing.fifo%60" href="#24.0.0-upgrading-to-24.0-default-for-%60druid.processing.fifo%60">#</a> Default for <code class="notranslate">druid.processing.fifo</code></h2> <p dir="auto">The default for <code class="notranslate">druid.processing.fifo</code> is now true. This means that tasks of equal priority are treated in a FIFO manner. For most use cases, this change can improve performance on heavily loaded clusters.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1249128095" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12571" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12571/hovercard" href="https://github.com/apache/druid/pull/12571">#12571</a></p> <h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-update-to-jdbc-statement-closure" href="#24.0.0-upgrading-to-24.0-update-to-jdbc-statement-closure">#</a> Update to JDBC statement closure</h2> <p dir="auto">In previous releases, Druid automatically closed the JDBC Statement when the ResultSet was closed. Druid closed the ResultSet on EOF. Druid closed the statement on any exception. This behavior is, however, non-standard.<br> In this release, Druid's JDBC driver follows the JDBC standards more closely:<br> The ResultSet closes automatically on EOF, but does not close the Statement or PreparedStatement. Your code must close these statements, perhaps by using a try-with-resources block.<br> The PreparedStatement can now be used multiple times with different parameters. (Previously this was not true since closing the ResultSet closed the PreparedStatement.)<br> If any call to a Statement or PreparedStatement raises an error, the client code must still explicitly close the statement. According to the JDBC standards, statements are not closed automatically on errors. This allows you to obtain information about a failed statement before closing it.<br> If you have code that depended on the old behavior, you may have to change your code to add the required close statement.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1284829130" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12709" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12709/hovercard" href="https://github.com/apache/druid/pull/12709">#12709</a></p> <h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-known-issues" href="#24.0.0-upgrading-to-24.0-known-issues">#</a> Known issues</h2> <h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-credit" href="#24.0.0-upgrading-to-24.0-credit">#</a> Credits</h2> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/2bethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/2bethere">@2bethere</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/317brian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/317brian">@317brian</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/a2l007/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/a2l007">@a2l007</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhagraw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhagraw">@abhagraw</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhishekagarwal87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhishekagarwal87">@abhishekagarwal87</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhishekrb19/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhishekrb19">@abhishekrb19</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adarshsanjeev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adarshsanjeev">@adarshsanjeev</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aggarwalakshay/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aggarwalakshay">@aggarwalakshay</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AmatyaAvadhanula/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AmatyaAvadhanula">@AmatyaAvadhanula</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BartMiki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BartMiki">@BartMiki</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/capistrant/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/capistrant">@capistrant</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chenrui333/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chenrui333">@chenrui333</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/churromorales/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/churromorales">@churromorales</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/clintropolis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/clintropolis">@clintropolis</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cloventt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cloventt">@cloventt</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CodingParsley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CodingParsley">@CodingParsley</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cryptoe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cryptoe">@cryptoe</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dampcake/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dampcake">@dampcake</a><br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a>[bot]<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dherg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dherg">@dherg</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/didip/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/didip">@didip</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dongjoon-hyun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dongjoon-hyun">@dongjoon-hyun</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ektravel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ektravel">@ektravel</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/EsoragotoSpirit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/EsoragotoSpirit">@EsoragotoSpirit</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/exherb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/exherb">@exherb</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrankChen021/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrankChen021">@FrankChen021</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gianm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gianm">@gianm</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hellmarbecker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hellmarbecker">@hellmarbecker</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hwball/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hwball">@hwball</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/iandr413/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/iandr413">@iandr413</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/imply-cheddar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/imply-cheddar">@imply-cheddar</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jarnoux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jarnoux">@jarnoux</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jasonk000/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jasonk000">@jasonk000</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jihoonson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jihoonson">@jihoonson</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jon-wei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jon-wei">@jon-wei</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kfaraz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kfaraz">@kfaraz</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LakshSingla/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LakshSingla">@LakshSingla</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liujianhuanzz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liujianhuanzz">@liujianhuanzz</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liuxiaohui1221/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liuxiaohui1221">@liuxiaohui1221</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lmsurpre/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lmsurpre">@lmsurpre</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/loquisgon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/loquisgon">@loquisgon</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/machine424/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/machine424">@machine424</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/maytasm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/maytasm">@maytasm</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MC-JY/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MC-JY">@MC-JY</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mihaylov93/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mihaylov93">@Mihaylov93</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nishantmonu51/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nishantmonu51">@nishantmonu51</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paul-rogers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paul-rogers">@paul-rogers</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/petermarshallio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/petermarshallio">@petermarshallio</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pjfanning/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pjfanning">@pjfanning</a><br> @rockc2020<br> @rohangarg<br> @somu-imply<br> @suneet-s<br> @superivaj<br> @techdocsmith<br> @tejaswini-imply<br> @TSFenwick<br> @vimil-saju<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vogievetsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vogievetsky">@vogievetsky</a><br> @vtlim<br> @williamhyun<br> @wiquan<br> @writer-jill<br> @xvrl<br> @yuanlihan<br> @zachjsh<br> @zemin-piao</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" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://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"> 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<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" checked=""> 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> <h4 dir="auto">Related Issues</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="239866650" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4116" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4116/hovercard" href="https://github.com/celery/celery/issues/4116">#4116</a></p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260820022" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4292" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/4292/hovercard" href="https://github.com/celery/celery/pull/4292">#4292</a></p> <h1 dir="auto">Environment &amp; Settings</h1> <p dir="auto">4.3.0 (rhubarb):<br> <strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">software -&gt; celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.8.2<br> billiard:3.6.3.0 py-amqp:2.5.2<br> platform -&gt; system:Linux arch:64bit, ELF<br> kernel version:4.15.0-88-generic imp:CPython<br> loader -&gt; celery.loaders.app.AppLoader<br> settings -&gt; transport:amqp results:amqp://guest:**@localhost//</p> <p dir="auto">ABSOLUTE_URL_OVERRIDES: {<br> }<br> ACCOUNT_ADAPTER: 'lancium_box.users.adapters.AccountAdapter'<br> ACCOUNT_ALLOW_REGISTRATION: True<br> ACCOUNT_AUTHENTICATION_METHOD: 'username'<br> ACCOUNT_EMAIL_REQUIRED: True<br> ACCOUNT_EMAIL_VERIFICATION: 'mandatory'<br> ACCOUNT_FORMS: {<br> 'login': 'lancium_box.users.forms.CustomLoginForm'}<br> ADMINS: [('Vitor de Miranda Henrique',<br> '<a href="mailto:vitor.henrique@lancium.com">vitor.henrique@lancium.com</a>')]<br> ADMIN_URL: 'admin/'<br> ALLOWED_HOSTS: []<br> APPEND_SLASH: True<br> APPS_DIR: Path:/home/skywalker/lancium_box/lancium_box<br> AUTHENTICATION_BACKENDS: ['lancium_box.users.auth_backends.CustomAuthenticationBackend',<br> 'django.contrib.auth.backends.ModelBackend',<br> 'allauth.account.auth_backends.AuthenticationBackend']<br> AUTH_PASSWORD_VALIDATORS: '<strong>'<br> AUTH_USER_MODEL: 'users.User'<br> CACHES: {<br> 'default': { 'BACKEND': 'django_redis.cache.RedisCache',<br> 'LOCATION': 'redis://127.0.0.1:6379/1',<br> 'OPTIONS': { 'CLIENT_CLASS': 'django_redis.client.DefaultClient',<br> 'IGNORE_EXCEPTIONS': True}}}<br> CACHE_MIDDLEWARE_ALIAS: 'default'<br> CACHE_MIDDLEWARE_KEY_PREFIX: '</strong>'<br> CACHE_MIDDLEWARE_SECONDS: 600<br> CELERY_ACCEPT_CONTENT: ['json']<br> CELERY_BROKER_URL: 'amqp://guest:<strong><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672//'<br> CELERY_IMPORTS: ['lancium_box.monitoring.tasks']<br> CELERY_RESULT_BACKEND: 'amqp://guest:</strong>@localhost//'<br> CELERY_RESULT_SERIALIZER: 'json'<br> CELERY_TASK_SERIALIZER: 'json'<br> CELERY_TASK_SOFT_TIME_LIMIT: 60<br> CELERY_TASK_TIME_LIMIT: 300<br> CELERY_TIMEZONE: 'UTC'<br> COMPRESSORS: {<br> 'css': 'compressor.css.CssCompressor', 'js': 'compressor.js.JsCompressor'}<br> COMPRESS_CACHEABLE_PRECOMPILERS:<br> ()<br> COMPRESS_CACHE_BACKEND: 'default'<br> COMPRESS_CACHE_KEY_FUNCTION: '<strong>'<br> COMPRESS_CLEAN_CSS_ARGUMENTS: ''<br> COMPRESS_CLEAN_CSS_BINARY: 'cleancss'<br> COMPRESS_CLOSURE_COMPILER_ARGUMENTS: ''<br> COMPRESS_CLOSURE_COMPILER_BINARY: 'java -jar compiler.jar'<br> COMPRESS_CSS_HASHING_METHOD: 'mtime'<br> COMPRESS_DATA_URI_MAX_SIZE: 1024<br> COMPRESS_DEBUG_TOGGLE: None<br> COMPRESS_ENABLED: True<br> COMPRESS_FILTERS: {<br> 'css': ['compressor.filters.css_default.CssAbsoluteFilter'],<br> 'js': ['compressor.filters.jsmin.JSMinFilter']}<br> COMPRESS_JINJA2_GET_ENVIRONMENT: &lt;function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7f3a8e76fee0&gt;<br> COMPRESS_MINT_DELAY: 30<br> COMPRESS_MTIME_DELAY: 10<br> COMPRESS_OFFLINE: True<br> COMPRESS_OFFLINE_CONTEXT: {<br> 'STATIC_URL': '/static/'}<br> COMPRESS_OFFLINE_MANIFEST: 'manifest.json'<br> COMPRESS_OFFLINE_TIMEOUT: 31536000<br> COMPRESS_OUTPUT_DIR: 'CACHE'<br> COMPRESS_PARSER: 'compressor.parser.AutoSelectParser'<br> COMPRESS_PRECOMPILERS:<br> ()<br> COMPRESS_REBUILD_TIMEOUT: 2592000<br> COMPRESS_ROOT: '/home/skywalker/lancium_box/staticfiles'<br> COMPRESS_STORAGE: 'compressor.storage.GzipCompressorFileStorage'<br> COMPRESS_TEMPLATE_FILTER_CONTEXT: {<br> 'STATIC_URL': '/static/'}<br> COMPRESS_URL: '/static/'<br> COMPRESS_URL_PLACEHOLDER: '/compressor_url_placeholder/'<br> COMPRESS_VERBOSE: False<br> COMPRESS_YUGLIFY_BINARY: 'yuglify'<br> COMPRESS_YUGLIFY_CSS_ARGUMENTS: '--terminal'<br> COMPRESS_YUGLIFY_JS_ARGUMENTS: '--terminal'<br> COMPRESS_YUI_BINARY: 'java -jar yuicompressor.jar'<br> COMPRESS_YUI_CSS_ARGUMENTS: ''<br> COMPRESS_YUI_JS_ARGUMENTS: ''<br> CRISPY_TEMPLATE_PACK: 'bootstrap4'<br> CSRF_COOKIE_AGE: 31449600<br> CSRF_COOKIE_DOMAIN: None<br> CSRF_COOKIE_HTTPONLY: True<br> CSRF_COOKIE_NAME: 'csrftoken'<br> CSRF_COOKIE_PATH: '/'<br> CSRF_COOKIE_SAMESITE: 'Lax'<br> CSRF_COOKIE_SECURE: False<br> CSRF_FAILURE_VIEW: 'django.views.csrf.csrf_failure'<br> CSRF_HEADER_NAME: 'HTTP_X_CSRFTOKEN'<br> CSRF_TRUSTED_ORIGINS: []<br> CSRF_USE_SESSIONS: False<br> DATABASES: {<br> 'default': { 'ATOMIC_REQUESTS': True,<br> 'AUTOCOMMIT': True,<br> 'CONN_MAX_AGE': None,<br> 'ENGINE': 'django.db.backends.postgresql',<br> 'HOST': '10.2.40.205',<br> 'NAME': 'lanciumdb',<br> 'OPTIONS': {},<br> 'PASSWORD': '</strong>',<br> 'PORT': 5432,<br> 'TEST': { 'CHARSET': None,<br> 'COLLATION': None,<br> 'MIRROR': None,<br> 'NAME': None},<br> 'TIME_ZONE': None,<br> 'USER': 'lancium_user'}}<br> DATABASE_ROUTERS: '<strong>'<br> DATACENTER_ROOM: None<br> DATA_UPLOAD_MAX_MEMORY_SIZE: 2621440<br> DATA_UPLOAD_MAX_NUMBER_FIELDS: 1000<br> DATETIME_FORMAT: 'N j, Y, P'<br> DATETIME_INPUT_FORMATS: ['%Y-%m-%d %H:%M:%S',<br> '%Y-%m-%d %H:%M:%S.%f',<br> '%Y-%m-%d %H:%M',<br> '%Y-%m-%d',<br> '%m/%d/%Y %H:%M:%S',<br> '%m/%d/%Y %H:%M:%S.%f',<br> '%m/%d/%Y %H:%M',<br> '%m/%d/%Y',<br> '%m/%d/%y %H:%M:%S',<br> '%m/%d/%y %H:%M:%S.%f',<br> '%m/%d/%y %H:%M',<br> '%m/%d/%y']<br> DATE_FORMAT: 'N j, Y'<br> DATE_INPUT_FORMATS: ['%Y-%m-%d',<br> '%m/%d/%Y',<br> '%m/%d/%y',<br> '%b %d %Y',<br> '%b %d, %Y',<br> '%d %b %Y',<br> '%d %b, %Y',<br> '%B %d %Y',<br> '%B %d, %Y',<br> '%d %B %Y',<br> '%d %B, %Y']<br> DEBUG: False<br> DEBUG_PROPAGATE_EXCEPTIONS: False<br> DECIMAL_SEPARATOR: '.'<br> DEFAULT_CHARSET: 'utf-8'<br> DEFAULT_CONTENT_TYPE: 'text/html'<br> DEFAULT_EXCEPTION_REPORTER_FILTER: 'django.views.debug.SafeExceptionReporterFilter'<br> DEFAULT_FILE_STORAGE: 'django.core.files.storage.FileSystemStorage'<br> DEFAULT_FROM_EMAIL: 'Smart Response <a href="mailto:noreply@lancium.com">noreply@lancium.com</a>'<br> DEFAULT_INDEX_TABLESPACE: ''<br> DEFAULT_TABLESPACE: ''<br> DISABLE_DASHBOARD: False<br> DISALLOWED_USER_AGENTS: []<br> DJANGO_APPS: ['django.contrib.auth',<br> 'django.contrib.contenttypes',<br> 'django.contrib.sessions',<br> 'django.contrib.sites',<br> 'django.contrib.messages',<br> 'django.contrib.staticfiles',<br> 'django.contrib.humanize',<br> 'django.contrib.admin']<br> EMAIL_BACKEND: 'django.core.mail.backends.smtp.EmailBackend'<br> EMAIL_HOST: 'smtp.gmail.com'<br> EMAIL_PORT: 587<br> EMAIL_SSL_CERTFILE: None<br> EMAIL_SSL_KEYFILE: '</strong>'<br> EMAIL_SUBJECT_PREFIX: '[Smart Response]'<br> EMAIL_TIMEOUT: 10<br> EMAIL_USE_LOCALTIME: False<br> EMAIL_USE_SSL: False<br> EMAIL_USE_TLS: True<br> FILE_CHARSET: 'utf-8'<br> FILE_UPLOAD_DIRECTORY_PERMISSIONS: None<br> FILE_UPLOAD_HANDLERS: ['django.core.files.uploadhandler.MemoryFileUploadHandler',<br> 'django.core.files.uploadhandler.TemporaryFileUploadHandler']<br> FILE_UPLOAD_MAX_MEMORY_SIZE: 2621440<br> FILE_UPLOAD_PERMISSIONS: None<br> FILE_UPLOAD_TEMP_DIR: None<br> FIRST_DAY_OF_WEEK: 0<br> FIXTURE_DIRS:<br> ('/home/skywalker/lancium_box/lancium_box/fixtures',)<br> FORCE_SCRIPT_NAME: None<br> FORMAT_MODULE_PATH: None<br> FORM_RENDERER: 'django.forms.renderers.DjangoTemplates'<br> IGNORABLE_404_URLS: []<br> INSTALLED_APPS: ['django.contrib.auth',<br> 'django.contrib.contenttypes',<br> 'django.contrib.sessions',<br> 'django.contrib.sites',<br> 'django.contrib.messages',<br> 'django.contrib.staticfiles',<br> 'django.contrib.humanize',<br> 'django.contrib.admin',<br> 'crispy_forms',<br> 'allauth',<br> 'allauth.account',<br> 'allauth.socialaccount',<br> 'rest_framework',<br> 'rest_framework.authtoken',<br> 'django_celery_beat',<br> 'sekizai',<br> 'lancium_box.users.apps.UsersConfig',<br> 'lancium_box.datacenter.apps.DatacenterConfig',<br> 'lancium_box.monitoring.apps.MonitoringConfig',<br> 'lancium_box.cryptocurrency.apps.CryptocurrencyConfig',<br> 'lancium_box.dashboard.apps.DashboardConfig',<br> 'lancium_box.remotebox.apps.RemoteboxConfig',<br> 'lancium_box.api.apps.ApiConfig',<br> 'lancium_box.event.apps.EventConfig',<br> 'lancium_box.control.apps.ControlConfig',<br> 'lancium_box.demand_response.apps.DemandResponseConfig',<br> 'lancium_box.inventory.apps.InventoryConfig',<br> 'compressor']<br> INTERNAL_IPS: []<br> LANGUAGES: [('af', 'Afrikaans'),<br> ('ar', 'Arabic'),<br> ('ast', 'Asturian'),<br> ('az', 'Azerbaijani'),<br> ('bg', 'Bulgarian'),<br> ('be', 'Belarusian'),<br> ('bn', 'Bengali'),<br> ('br', 'Breton'),<br> ('bs', 'Bosnian'),<br> ('ca', 'Catalan'),<br> ('cs', 'Czech'),<br> ('cy', 'Welsh'),<br> ('da', 'Danish'),<br> ('de', 'German'),<br> ('dsb', 'Lower Sorbian'),<br> ('el', 'Greek'),<br> ('en', 'English'),<br> ('en-au', 'Australian English'),<br> ('en-gb', 'British English'),<br> ('eo', 'Esperanto'),<br> ('es', 'Spanish'),<br> ('es-ar', 'Argentinian Spanish'),<br> ('es-co', 'Colombian Spanish'),<br> ('es-mx', 'Mexican Spanish'),<br> ('es-ni', 'Nicaraguan Spanish'),<br> ('es-ve', 'Venezuelan Spanish'),<br> ('et', 'Estonian'),<br> ('eu', 'Basque'),<br> ('fa', 'Persian'),<br> ('fi', 'Finnish'),<br> ('fr', 'French'),<br> ('fy', 'Frisian'),<br> ('ga', 'Irish'),<br> ('gd', 'Scottish Gaelic'),<br> ('gl', 'Galician'),<br> ('he', 'Hebrew'),<br> ('hi', 'Hindi'),<br> ('hr', 'Croatian'),<br> ('hsb', 'Upper Sorbian'),<br> ('hu', 'Hungarian'),<br> ('hy', 'Armenian'),<br> ('ia', 'Interlingua'),<br> ('id', 'Indonesian'),<br> ('io', 'Ido'),<br> ('is', 'Icelandic'),<br> ('it', 'Italian'),<br> ('ja', 'Japanese'),<br> ('ka', 'Georgian'),<br> ('kab', 'Kabyle'),<br> ('kk', 'Kazakh'),<br> ('km', 'Khmer'),<br> ('kn', 'Kannada'),<br> ('ko', 'Korean'),<br> ('lb', 'Luxembourgish'),<br> ('lt', 'Lithuanian'),<br> ('lv', 'Latvian'),<br> ('mk', 'Macedonian'),<br> ('ml', 'Malayalam'),<br> ('mn', 'Mongolian'),<br> ('mr', 'Marathi'),<br> ('my', 'Burmese'),<br> ('nb', 'Norwegian Bokmål'),<br> ('ne', 'Nepali'),<br> ('nl', 'Dutch'),<br> ('nn', 'Norwegian Nynorsk'),<br> ('os', 'Ossetic'),<br> ('pa', 'Punjabi'),<br> ('pl', 'Polish'),<br> ('pt', 'Portuguese'),<br> ('pt-br', 'Brazilian Portuguese'),<br> ('ro', 'Romanian'),<br> ('ru', 'Russian'),<br> ('sk', 'Slovak'),<br> ('sl', 'Slovenian'),<br> ('sq', 'Albanian'),<br> ('sr', 'Serbian'),<br> ('sr-latn', 'Serbian Latin'),<br> ('sv', 'Swedish'),<br> ('sw', 'Swahili'),<br> ('ta', 'Tamil'),<br> ('te', 'Telugu'),<br> ('th', 'Thai'),<br> ('tr', 'Turkish'),<br> ('tt', 'Tatar'),<br> ('udm', 'Udmurt'),<br> ('uk', 'Ukrainian'),<br> ('ur', 'Urdu'),<br> ('vi', 'Vietnamese'),<br> ('zh-hans', 'Simplified Chinese'),<br> ('zh-hant', 'Traditional Chinese')]<br> LANGUAGES_BIDI: ['he', 'ar', 'fa', 'ur']<br> LANGUAGE_CODE: 'en-us'<br> LANGUAGE_COOKIE_AGE: None<br> LANGUAGE_COOKIE_DOMAIN: None<br> LANGUAGE_COOKIE_NAME: 'django_language'<br> LANGUAGE_COOKIE_PATH: '/'<br> LOCALE_PATHS: [Path:/home/skywalker/lancium_box/locale]<br> LOCAL_APPS: ['lancium_box.users.apps.UsersConfig',<br> 'lancium_box.datacenter.apps.DatacenterConfig',<br> 'lancium_box.monitoring.apps.MonitoringConfig',<br> 'lancium_box.cryptocurrency.apps.CryptocurrencyConfig',<br> 'lancium_box.dashboard.apps.DashboardConfig',<br> 'lancium_box.remotebox.apps.RemoteboxConfig',<br> 'lancium_box.api.apps.ApiConfig',<br> 'lancium_box.event.apps.EventConfig',<br> 'lancium_box.control.apps.ControlConfig',<br> 'lancium_box.demand_response.apps.DemandResponseConfig',<br> 'lancium_box.inventory.apps.InventoryConfig']<br> LOGGING: {<br> 'disable_existing_loggers': False,<br> 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse'}},<br> 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s '<br> '%(module)s %(process)d '<br> '%(thread)d %(message)s'}},<br> 'handlers': { 'console': { 'class': 'logging.StreamHandler',<br> 'formatter': 'verbose',<br> 'level': 'DEBUG'},<br> 'mail_admins': { 'class': 'django.utils.log.AdminEmailHandler',<br> 'filters': ['require_debug_false'],<br> 'level': 'ERROR'}},<br> 'loggers': { 'django.request': { 'handlers': ['mail_admins'],<br> 'level': 'ERROR',<br> 'propagate': True},<br> 'django.security.DisallowedHost': { 'handlers': [ 'console',<br> 'mail_admins'],<br> 'level': 'ERROR',<br> 'propagate': True}},<br> 'root': {'handlers': ['console'], 'level': 'INFO'},<br> 'version': 1}<br> LOGGING_CONFIG: 'logging.config.dictConfig'<br> LOGIN_REDIRECT_URL: 'users:redirect'<br> LOGIN_URL: 'account_login'<br> LOGOUT_REDIRECT_URL: None<br> MANAGERS: [('Vitor de Miranda Henrique',<br> '<a href="mailto:vitor.henrique@lancium.com">vitor.henrique@lancium.com</a>')]<br> MEDIA_ROOT: '/home/skywalker/lancium_box/lancium_box/media'<br> MEDIA_URL: '/media/'<br> MESSAGE_STORAGE: 'django.contrib.messages.storage.fallback.FallbackStorage'<br> MIDDLEWARE: ['whitenoise.middleware.WhiteNoiseMiddleware',<br> 'django.contrib.sessions.middleware.SessionMiddleware',<br> 'django.middleware.locale.LocaleMiddleware',<br> 'django.middleware.common.CommonMiddleware',<br> 'django.middleware.csrf.CsrfViewMiddleware',<br> 'django.contrib.auth.middleware.AuthenticationMiddleware',<br> 'django.contrib.messages.middleware.MessageMiddleware',<br> 'django.middleware.clickjacking.XFrameOptionsMiddleware']<br> MIGRATION_MODULES: {<br> 'sites': 'lancium_box.contrib.sites.migrations'}<br> MONTH_DAY_FORMAT: 'F j'<br> NUMBER_GROUPING: 0<br> PASSWORD_HASHERS: '<strong>'<br> PASSWORD_RESET_TIMEOUT_DAYS: '</strong>'<br> PREPEND_WWW: False<br> READ_DOT_ENV_FILE: False<br> REST_FRAMEWORK: {<br> 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.TokenAuthentication']}<br> ROOT_DIR: Path:/home/skywalker/lancium_box<br> ROOT_URLCONF: 'config.urls'<br> SECRET_KEY: '********'<br> SECURE_BROWSER_XSS_FILTER: True<br> SECURE_CONTENT_TYPE_NOSNIFF: False<br> SECURE_HSTS_INCLUDE_SUBDOMAINS: False<br> SECURE_HSTS_PRELOAD: False<br> SECURE_HSTS_SECONDS: 0<br> SECURE_PROXY_SSL_HEADER: None<br> SECURE_REDIRECT_EXEMPT: []<br> SECURE_SSL_HOST: None<br> SECURE_SSL_REDIRECT: False<br> SERVER_EMAIL: 'Smart Response <a href="mailto:noreply@lancium.com">noreply@lancium.com</a>'<br> SESSION_CACHE_ALIAS: 'default'<br> SESSION_COOKIE_AGE: 1209600<br> SESSION_COOKIE_DOMAIN: None<br> SESSION_COOKIE_HTTPONLY: True<br> SESSION_COOKIE_NAME: 'sessionid'<br> SESSION_COOKIE_PATH: '/'<br> SESSION_COOKIE_SAMESITE: 'Lax'<br> SESSION_COOKIE_SECURE: False<br> SESSION_ENGINE: 'django.contrib.sessions.backends.db'<br> SESSION_EXPIRE_AT_BROWSER_CLOSE: False<br> SESSION_FILE_PATH: None<br> SESSION_SAVE_EVERY_REQUEST: False<br> SESSION_SERIALIZER: 'django.contrib.sessions.serializers.JSONSerializer'<br> SETTINGS_MODULE: 'config.settings.production'<br> SHORT_DATETIME_FORMAT: 'm/d/Y P'<br> SHORT_DATE_FORMAT: 'm/d/Y'<br> SIGNING_BACKEND: 'django.core.signing.TimestampSigner'<br> SILENCED_SYSTEM_CHECKS: []<br> SITE_ID: 1<br> SOCIALACCOUNT_ADAPTER: 'lancium_box.users.adapters.SocialAccountAdapter'<br> STATICFILES_DIRS: ['/home/skywalker/lancium_box/lancium_box/static']<br> STATICFILES_FINDERS: ['django.contrib.staticfiles.finders.FileSystemFinder',<br> 'django.contrib.staticfiles.finders.AppDirectoriesFinder',<br> 'compressor.finders.CompressorFinder']<br> STATICFILES_STORAGE: 'whitenoise.storage.CompressedManifestStaticFilesStorage'<br> STATIC_ROOT: '/home/skywalker/lancium_box/staticfiles'<br> STATIC_URL: '/static/'<br> TEMPLATES: [{'BACKEND': 'django.template.backends.django.DjangoTemplates',<br> 'DIRS': ['/home/skywalker/lancium_box/lancium_box/templates'],<br> 'OPTIONS': {'context_processors': ['django.template.context_processors.debug',<br> 'django.template.context_processors.request',<br> 'django.contrib.auth.context_processors.auth',<br> 'django.template.context_processors.i18n',<br> 'django.template.context_processors.media',<br> 'django.template.context_processors.static',<br> 'django.template.context_processors.tz',<br> 'django.contrib.messages.context_processors.messages',<br> 'lancium_box.utils.context_processors.settings_context',<br> 'sekizai.context_processors.sekizai'],<br> 'loaders': [('django.template.loaders.cached.Loader',<br> ['django.template.loaders.filesystem.Loader',<br> 'django.template.loaders.app_directories.Loader'])]}}]<br> TEST_NON_SERIALIZED_APPS: []<br> TEST_RUNNER: 'django.test.runner.DiscoverRunner'<br> THIRD_PARTY_APPS: ['crispy_forms',<br> 'allauth',<br> 'allauth.account',<br> 'allauth.socialaccount',<br> 'rest_framework',<br> 'rest_framework.authtoken',<br> 'django_celery_beat',<br> 'sekizai']<br> THOUSAND_SEPARATOR: ','<br> TIME_FORMAT: 'P'<br> TIME_INPUT_FORMATS: ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']<br> TIME_ZONE: 'UTC'<br> USE_I18N: True<br> USE_L10N: True<br> USE_THOUSAND_SEPARATOR: False<br> USE_TZ: True<br> USE_X_FORWARDED_HOST: False<br> USE_X_FORWARDED_PORT: False<br> WSGI_APPLICATION: 'config.wsgi.application'<br> X_FRAME_OPTIONS: 'DENY'<br> YEAR_MONTH_FORMAT: 'F Y'<br> is_overridden: &lt;bound method Settings.is_overridden of &lt;Settings "config.settings.production"&gt;&gt;</p> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">Hello everyone,</p> <p dir="auto">On my project I have 5 workers on running that periodically check or insert data on database (postgress) every 5 seconds . My problem is that celery is opening too many connections to the database. I can see at least 20 connections for the same tasks hitting the database.</p> <p dir="auto">Is there way to improve this with Django? I tried setting up <code class="notranslate">CONN_MAX_AGE = None</code> on django, to have the database persist the same connection but that didn't help.</p> <p dir="auto">I also saw a pull request and some comments on reuse the database on previous mentioned issues but they were reverted because they caused regression problems.</p> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">amqp==2.5.2<br> argon2-cffi==19.2.0<br> bcrypt==3.1.7<br> beautifulsoup4==4.7.1<br> billiard==3.6.3.0<br> blockchain==1.4.4<br> boto3==1.12.47<br> botocore==1.15.47<br> celery==4.3.0<br> certifi==2020.4.5.1<br> cffi==1.14.0<br> chardet==3.0.4<br> coreapi==2.3.3<br> coreschema==0.0.4<br> cryptography==2.9.2<br> defusedxml==0.6.0<br> Django==2.2.8<br> django-allauth==0.40.0<br> django-anymail==7.0.0<br> django-appconf==1.0.4<br> django-celery-beat==1.5.0<br> django-classy-tags==0.8.0<br> django-compressor==2.3<br> django-crispy-forms==1.8.1<br> django-environ==0.4.5<br> django-model-utils==3.2.0<br> django-pandas==0.6.0<br> django-redis==4.10.0<br> django-sekizai==1.0.0<br> django-storages==1.9.1<br> django-timezone-field==4.0<br> djangorestframework==3.10.3<br> docutils==0.15.2<br> enum-compat==0.0.3<br> et-xmlfile==1.0.1<br> future==0.18.2<br> gevent==20.4.0<br> greenlet==0.4.15<br> gunicorn==20.0.4<br> idna==2.8<br> itypes==1.2.0<br> jdcal==1.4.1<br> Jinja2==2.11.2<br> jmespath==0.9.5<br> kombu==4.5.0<br> MarkupSafe==1.1.1<br> numpy==1.16.2<br> oauthlib==3.1.0<br> openpyxl==2.6.3<br> pandas==0.24.2<br> parallel-ssh==1.9.1<br> paramiko==2.7.1<br> Pillow==6.2.1<br> psycopg2-binary==2.8.4<br> pycparser==2.20<br> pyModbusTCP==0.1.8<br> PyNaCl==1.3.0<br> pysftp==0.2.9<br> python-crontab==2.4.2<br> python-dateutil==2.8.0<br> python-slugify==4.0.0<br> python3-openid==3.1.0<br> pytz==2019.3<br> rcssmin==1.0.6<br> redis==3.3.11<br> requests==2.21.0<br> requests-oauthlib==1.3.0<br> rjsmin==1.1.0<br> s3transfer==0.3.3<br> six==1.14.0<br> soupsieve==2.0<br> sqlparse==0.3.1<br> ssh2-python==0.18.0.post1<br> text-unidecode==1.3<br> uritemplate==3.0.1<br> urllib3==1.24.3<br> vine==1.3.0<br> whitenoise==4.1.4</p> <p dir="auto"></p> </details>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22I5597ssue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</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> </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" checked=""> 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" checked=""> 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 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><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="456106564" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5597" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5597/hovercard" href="https://github.com/celery/celery/issues/5597">#5597</a></li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.3.0 (rhubarb)</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.3.0 (rhubarb) kombu:4.4.0 py:3.6.7 billiard:3.6.0.0 py-amqp:2.4.1 platform -&gt; system:Linux arch:64bit kernel version:4.18.0-25-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled task_queues: [&lt;unbound Queue test -&gt; &lt;unbound Exchange test(direct)&gt; -&gt; test&gt;]"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.3.0 (rhubarb) kombu:4.4.0 py:3.6.7 billiard:3.6.0.0 py-amqp:2.4.1 platform -&gt; system:Linux arch:64bit kernel version:4.18.0-25-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled task_queues: [&lt;unbound Queue test -&gt; &lt;unbound Exchange test(direct)&gt; -&gt; test&gt;] </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.6.7</li> <li><strong>Minimal Celery Version</strong>: 4.3.0</li> <li><strong>Minimal Kombu Version</strong>: 4.4.0</li> </ul> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import celery from kombu import Exchange from kombu import Queue class Config: task_queues = [ Queue('test', Exchange('test'), routing_key='test', queue_arguments={'x-max-priority': 3}) ] # yapf: disable app = celery.Celery('test') app.config_from_object(Config) @app.task(bind=True) def task(self): print(self.request.delivery_info['priority']) self.retry(countdown=1) if __name__ == '__main__': task.s().apply_async(priority=1, queue='test')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">celery</span> <span class="pl-k">from</span> <span class="pl-s1">kombu</span> <span class="pl-k">import</span> <span class="pl-v">Exchange</span> <span class="pl-k">from</span> <span class="pl-s1">kombu</span> <span class="pl-k">import</span> <span class="pl-v">Queue</span> <span class="pl-k">class</span> <span class="pl-v">Config</span>: <span class="pl-s1">task_queues</span> <span class="pl-c1">=</span> [ <span class="pl-v">Queue</span>(<span class="pl-s">'test'</span>, <span class="pl-v">Exchange</span>(<span class="pl-s">'test'</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>, <span class="pl-s1">queue_arguments</span><span class="pl-c1">=</span>{<span class="pl-s">'x-max-priority'</span>: <span class="pl-c1">3</span>}) ] <span class="pl-c"># yapf: disable</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-v">Celery</span>(<span class="pl-s">'test'</span>) <span class="pl-s1">app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-v">Config</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span> <span class="pl-k">def</span> <span class="pl-en">task</span>(<span class="pl-s1">self</span>): <span class="pl-en">print</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">delivery_info</span>[<span class="pl-s">'priority'</span>]) <span class="pl-s1">self</span>.<span class="pl-en">retry</span>(<span class="pl-s1">countdown</span><span class="pl-c1">=</span><span class="pl-c1">1</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">task</span>.<span class="pl-en">s</span>().<span class="pl-en">apply_async</span>(<span class="pl-s1">priority</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>)</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Expect task to have a priority 1 after self.retry()</p> <p dir="auto">Expected output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[tasks] . test.task [2019-07-24 22:31:50,810: INFO/MainProcess] Connected to amqp://guest:**@127.0.0.1:5672// [2019-07-24 22:31:50,823: INFO/MainProcess] mingle: searching for neighbors [2019-07-24 22:31:51,855: INFO/MainProcess] mingle: all alone [2019-07-24 22:31:51,869: INFO/MainProcess] celery@ArtSobes-Home-Ubuntu-18 ready. [2019-07-24 22:31:51,870: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] [2019-07-24 22:31:51,973: WARNING/ForkPoolWorker-16] 1 [2019-07-24 22:31:51,995: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] ETA:[2019-07-24 19:31:52.974357+00:00] [2019-07-24 22:31:51,995: INFO/ForkPoolWorker-16] Task test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] retry: Retry in 1s [2019-07-24 22:31:54,828: WARNING/ForkPoolWorker-2] 1 [2019-07-24 22:31:54,850: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] ETA:[2019-07-24 19:31:55.829945+00:00] [2019-07-24 22:31:54,850: INFO/ForkPoolWorker-2] Task test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] retry: Retry in 1s [2019-07-24 22:31:56,831: WARNING/ForkPoolWorker-4] 1 [2019-07-24 22:31:56,853: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] ETA:[2019-07-24 19:31:57.832523+00:00] [2019-07-24 22:31:56,853: INFO/ForkPoolWorker-4] Task test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] retry: Retry in 1s [2019-07-24 22:31:58,833: WARNING/ForkPoolWorker-6] 1"><pre lang="[python]" class="notranslate"><code class="notranslate">[tasks] . test.task [2019-07-24 22:31:50,810: INFO/MainProcess] Connected to amqp://guest:**@127.0.0.1:5672// [2019-07-24 22:31:50,823: INFO/MainProcess] mingle: searching for neighbors [2019-07-24 22:31:51,855: INFO/MainProcess] mingle: all alone [2019-07-24 22:31:51,869: INFO/MainProcess] celery@ArtSobes-Home-Ubuntu-18 ready. [2019-07-24 22:31:51,870: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] [2019-07-24 22:31:51,973: WARNING/ForkPoolWorker-16] 1 [2019-07-24 22:31:51,995: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] ETA:[2019-07-24 19:31:52.974357+00:00] [2019-07-24 22:31:51,995: INFO/ForkPoolWorker-16] Task test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] retry: Retry in 1s [2019-07-24 22:31:54,828: WARNING/ForkPoolWorker-2] 1 [2019-07-24 22:31:54,850: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] ETA:[2019-07-24 19:31:55.829945+00:00] [2019-07-24 22:31:54,850: INFO/ForkPoolWorker-2] Task test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] retry: Retry in 1s [2019-07-24 22:31:56,831: WARNING/ForkPoolWorker-4] 1 [2019-07-24 22:31:56,853: INFO/MainProcess] Received task: test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] ETA:[2019-07-24 19:31:57.832523+00:00] [2019-07-24 22:31:56,853: INFO/ForkPoolWorker-4] Task test.task[df27b1cc-6a9e-4fdb-aa46-dd02d15e4df2] retry: Retry in 1s [2019-07-24 22:31:58,833: WARNING/ForkPoolWorker-6] 1 </code></pre></div> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">On the first call task priority is 1, but after retry it is None</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[tasks] . test.task [2019-07-24 22:30:51,901: INFO/MainProcess] Connected to amqp://guest:**@127.0.0.1:5672// [2019-07-24 22:30:51,913: INFO/MainProcess] mingle: searching for neighbors [2019-07-24 22:30:52,940: INFO/MainProcess] mingle: all alone [2019-07-24 22:30:52,956: INFO/MainProcess] celery@ArtSobes-Home-Ubuntu-18 ready. [2019-07-24 22:30:52,957: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] [2019-07-24 22:30:53,060: WARNING/ForkPoolWorker-16] 1 [2019-07-24 22:30:53,083: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] ETA:[2019-07-24 19:30:54.062046+00:00] [2019-07-24 22:30:53,083: INFO/ForkPoolWorker-16] Task test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] retry: Retry in 1s [2019-07-24 22:30:54,958: WARNING/ForkPoolWorker-2] None [2019-07-24 22:30:54,979: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] ETA:[2019-07-24 19:30:55.959481+00:00] [2019-07-24 22:30:54,979: INFO/ForkPoolWorker-2] Task test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] retry: Retry in 1s [2019-07-24 22:30:56,960: WARNING/ForkPoolWorker-4] None [2019-07-24 22:30:56,982: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] ETA:[2019-07-24 19:30:57.962134+00:00] [2019-07-24 22:30:56,983: INFO/ForkPoolWorker-4] Task test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] retry: Retry in 1s [2019-07-24 22:30:58,963: WARNING/ForkPoolWorker-6] None"><pre lang="[python]" class="notranslate"><code class="notranslate">[tasks] . test.task [2019-07-24 22:30:51,901: INFO/MainProcess] Connected to amqp://guest:**@127.0.0.1:5672// [2019-07-24 22:30:51,913: INFO/MainProcess] mingle: searching for neighbors [2019-07-24 22:30:52,940: INFO/MainProcess] mingle: all alone [2019-07-24 22:30:52,956: INFO/MainProcess] celery@ArtSobes-Home-Ubuntu-18 ready. [2019-07-24 22:30:52,957: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] [2019-07-24 22:30:53,060: WARNING/ForkPoolWorker-16] 1 [2019-07-24 22:30:53,083: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] ETA:[2019-07-24 19:30:54.062046+00:00] [2019-07-24 22:30:53,083: INFO/ForkPoolWorker-16] Task test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] retry: Retry in 1s [2019-07-24 22:30:54,958: WARNING/ForkPoolWorker-2] None [2019-07-24 22:30:54,979: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] ETA:[2019-07-24 19:30:55.959481+00:00] [2019-07-24 22:30:54,979: INFO/ForkPoolWorker-2] Task test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] retry: Retry in 1s [2019-07-24 22:30:56,960: WARNING/ForkPoolWorker-4] None [2019-07-24 22:30:56,982: INFO/MainProcess] Received task: test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] ETA:[2019-07-24 19:30:57.962134+00:00] [2019-07-24 22:30:56,983: INFO/ForkPoolWorker-4] Task test.task[bc93cbd9-9a20-41cb-aaef-55c71245038e] retry: Retry in 1s [2019-07-24 22:30:58,963: WARNING/ForkPoolWorker-6] None </code></pre></div>
0
<p dir="auto">There should be a way to add typings for specific version of ts(e.g. <code class="notranslate">2.1</code>). The tests should run on ts 2.1 and packages should require typescript 2.1 in their package.json.<br> So what is the best way to do it?</p>
<p dir="auto">It makes sense to not want to break existing users with a "^" dependency on something like <code class="notranslate">@types/react</code>, but it hinders the very users and organizations that help the TS ecosystem. The introduction of <code class="notranslate">Partial&lt;&gt;</code> and co in particular is a big game changer, and many users would benefit from updates to react and lodash in particular.</p> <p dir="auto">The current policy has been stated as waiting 30 days before allowing new features into DefinitelyTyped to avoid breaking people. While I disagree with the policy, I think it we as a community can do better to support those on the bleeding edge.</p> <p dir="auto">Considering the situation, I'd like to propose a few options.</p> <p dir="auto"><strong>Option A</strong>, do nothing. There are work arounds if you want to start moving fast, such as hacking <code class="notranslate">paths</code> and <code class="notranslate">typeRoots</code> in your tsconfig. I have documented one such solution here: <a href="https://medium.com/@ericlanderson/using-custom-typescript-definitions-with-ts-2-x-3121db84015d#.tvqw3rmth" rel="nofollow">https://medium.com/@ericlanderson/using-custom-typescript-definitions-with-ts-2-x-3121db84015d#.tvqw3rmth</a></p> <p dir="auto">While this works, its a hassle.</p> <p dir="auto"><strong>Option B</strong>: Someone (maybe me) forks DefinitelyTyped and allows changes for the latest and greatest right away. I could publish this as something like "types-edge" in npm and provide documentation for how to configure your tsconfig to allow for it to work.</p> <p dir="auto">While this works, it half forks the community, and creates a burden on myself to keep up to date with DefinitelyTyped. It also hinders discoverability. I think this hurts the ecosystem, but its better than everyone manually forking type definitions.</p> <p dir="auto"><strong>Option C</strong>: DefinitelyTyped and Microsoft support the development of these edge versions on a branch within DefinitelyTyped (lets call it "edge" or even use "master"). Microsoft could then register the org @types-edge and publish the edge branch. The DefinitelyTyped and Microsoft people could then as a group keep merging types-2.0 (which should really be called "stable" in this world) into edge, while allowing the community to grow and move quickly. If desired, there could also be a "nightly" branch and a corresponding @types-nightly (I would have personally liked this as the second <code class="notranslate">Partial&lt;&gt;</code> and <code class="notranslate">keyof</code> got merged, I started using it immediately). This would also mean the types are already being updated and ready to go when the next TS release happens.</p> <p dir="auto">There could also be a release of typescript 2.1.1 pretty quickly that adds "./node_modules/@types-edge" to the default list of for the <code class="notranslate">paths</code> and the <code class="notranslate">typeRoots</code> in tsconfig.</p> <p dir="auto">I think this is the best short-term solution.</p> <p dir="auto"><strong>Option D</strong>: Add macros to TS. (Yeah this is dirty). But the macros could allow things like <code class="notranslate">#if typescriptVersion &gt;= 2.1.0</code> and allow additional definitions to be placed into the type files. This would still require the 30 day grace period before it could be introduced (maybe in TS 2.2?) but would future proof this problem and allow just a single npm org for publishing types. Its also not backwards compatible, but it would be the easiest to maintain in DefinitelyTyped.</p> <p dir="auto"><strong>Option E</strong>: Add additional meta-data support to package.json to declare types with a minimum version. This could look something like:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;...&quot;: &quot;...&quot;, &quot;types2&quot;: { &quot;&gt;=2.1.0&quot;: &quot;index-2.1.0.d.ts&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"..."</span>: <span class="pl-s"><span class="pl-pds">"</span>...<span class="pl-pds">"</span></span>, <span class="pl-ent">"types2"</span>: { <span class="pl-ent">"&gt;=2.1.0"</span>: <span class="pl-s"><span class="pl-pds">"</span>index-2.1.0.d.ts<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">Newer versions of typescript can look at this instead of <code class="notranslate">types</code> and choose the highest version that maps.</p> <p dir="auto">This would be a PITA to support, IMHO. You could do it with branches in DT, but now we have to support forward merging changes to types-2.0 to types-2.1 and then types-2.2, etc. Or you have to keep the different versions in the same branch and remember to change them all when adding new functionality.</p> <p dir="auto">Another way to do this, which I have no idea if it would work given future changes to TS are unknown, is write scripts that convert the latest typings into older versions. For example, pretty much every typing that would want <code class="notranslate">Partial&lt;T&gt;</code> could just be mutated at the time the publisher runs to replace it with <code class="notranslate">T</code>. <code class="notranslate">Pick</code> is probably <code class="notranslate">any</code> in the old world. <code class="notranslate">ReadonlyArray</code> support wouldn't have been broken cause it could just be <code class="notranslate">Array</code>. This would require custom scripts for each new release but it might not be awful.</p> <p dir="auto">There are probably other ways to do it, but these are the ones that came to me today. I would really love to hear the opinions of a bunch of people: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</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/pspeter3/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pspeter3">@pspeter3</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsiao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsiao">@vsiao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jkillian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jkillian">@jkillian</a>, and more.</p> <p dir="auto">Thanks</p>
1
<p dir="auto">Does babel make code that will conditionally run native generators instead of always using the performance cost of regenerator (when using <code class="notranslate">transform-regenerator</code>)?</p> <p dir="auto">f.e., something similar to (examples copied pasted from regenerator site):</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (supportsGenerators()) { function *range(max, step) { var count = 0; step = step || 1; for (var i = 0; i &lt; max; i += step) { count++; yield i; } return count; } var gen = range(20, 3), info; while (!(info = gen.next()).done) { console.log(info.value); } console.log(&quot;steps taken: &quot; + info.value); } else { var marked0$0 = [range].map(regeneratorRuntime.mark); function range(max, step) { var count, i; return regeneratorRuntime.wrap(function range$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: count = 0; step = step || 1; i = 0; case 3: if (!(i &lt; max)) { context$1$0.next = 10; break; } count++; context$1$0.next = 7; return i; case 7: i += step; context$1$0.next = 3; break; case 10: return context$1$0.abrupt(&quot;return&quot;, count); case 11: case &quot;end&quot;: return context$1$0.stop(); } }, marked0$0[0], this); } var gen = range(20, 3), info; while (!(info = gen.next()).done) { console.log(info.value); } console.log(&quot;steps taken: &quot; + info.value); }"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">supportsGenerators</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">function</span> <span class="pl-c1">*</span><span class="pl-s1">range</span><span class="pl-kos">(</span><span class="pl-s1">max</span><span class="pl-kos">,</span> <span class="pl-s1">step</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">count</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">step</span> <span class="pl-c1">=</span> <span class="pl-s1">step</span> <span class="pl-c1">||</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">max</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">+=</span> <span class="pl-s1">step</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">count</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-k">yield</span> <span class="pl-s1">i</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">count</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">gen</span> <span class="pl-c1">=</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">20</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">info</span><span class="pl-kos">;</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">gen</span><span class="pl-kos">.</span><span class="pl-en">next</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">done</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">info</span><span class="pl-kos">.</span><span class="pl-c1">value</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">"steps taken: "</span> <span class="pl-c1">+</span> <span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">marked0$0</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">range</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-c1">mark</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-s1">max</span><span class="pl-kos">,</span> <span class="pl-s1">step</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">count</span><span class="pl-kos">,</span> <span class="pl-s1">i</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">wrap</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">range$</span><span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</span>: <span class="pl-s1">count</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">step</span> <span class="pl-c1">=</span> <span class="pl-s1">step</span> <span class="pl-c1">||</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">3</span>: <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">max</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">count</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">i</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">7</span>: <span class="pl-s1">i</span> <span class="pl-c1">+=</span> <span class="pl-s1">step</span><span class="pl-kos">;</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span><span class="pl-kos">;</span> <span class="pl-k">break</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">10</span>: <span class="pl-k">return</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-en">abrupt</span><span class="pl-kos">(</span><span class="pl-s">"return"</span><span class="pl-kos">,</span> <span class="pl-s1">count</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">11</span>: <span class="pl-k">case</span> <span class="pl-s">"end"</span>: <span class="pl-k">return</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-en">stop</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-s1">marked0$0</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-smi">this</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">gen</span> <span class="pl-c1">=</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">20</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">info</span><span class="pl-kos">;</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">gen</span><span class="pl-kos">.</span><span class="pl-en">next</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">done</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">info</span><span class="pl-kos">.</span><span class="pl-c1">value</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">"steps taken: "</span> <span class="pl-c1">+</span> <span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Cellule/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Cellule">@Cellule</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.8.0</li> <li><strong>Node version:</strong> 5.5.0</li> <li><strong>npm version:</strong> 3.7.2</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [&quot;transform-es2015-modules-umd&quot;] }"><pre class="notranslate"><code class="notranslate">{ "plugins": ["transform-es2015-modules-umd"] } </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require(&quot;module&quot;).test;"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"module"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">test</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Compiling <code class="notranslate">require("module").test;</code> with plugin <code class="notranslate">transform-es2015-modules-umd</code><br> throws the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: test.js: Property object of MemberExpression expected node to be of a type [&quot;Expression&quot;] but instead got null at Object.validate (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-types\lib\definitions\index.js:115:13) at Object.validate (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-types\lib\index.js:552:9) at NodePath._replaceWith (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\replacement.js:214:7) at NodePath._remove (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\removal.js:60:10) at NodePath.remove (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\removal.js:31:8) at PluginPass.CallExpression (E:\Projects\chakra-runner\node_modules\babel-plugin-transform-es2015-modules-amd\lib\index.js:42:12) at NodePath._call (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:78:18) at NodePath.call (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:49:17) at NodePath.visit (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:108:12) at TraversalContext.visitQueue (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:174:16)"><pre class="notranslate"><code class="notranslate">TypeError: test.js: Property object of MemberExpression expected node to be of a type ["Expression"] but instead got null at Object.validate (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-types\lib\definitions\index.js:115:13) at Object.validate (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-types\lib\index.js:552:9) at NodePath._replaceWith (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\replacement.js:214:7) at NodePath._remove (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\removal.js:60:10) at NodePath.remove (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\removal.js:31:8) at PluginPass.CallExpression (E:\Projects\chakra-runner\node_modules\babel-plugin-transform-es2015-modules-amd\lib\index.js:42:12) at NodePath._call (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:78:18) at NodePath.call (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:49:17) at NodePath.visit (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:108:12) at TraversalContext.visitQueue (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:174:16) </code></pre></div>
0
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/slash3g/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/slash3g">@slash3g</a> on 2016-04-10T16:37:22Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lxc_container</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <p dir="auto">(bug still present in devel branch)</p> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Default Ansible configuration.</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">lxc_container handles container configuration via the container_configuration parameter. Unfortunately, the logic behind the configuration update is broken, as it duplicates the key and never replaces old values. Morever, when the configuration file contains duplicated keys, the script can fail to make any changes.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Exec the following playbook</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: myhost tasks: - name: fist config update lxc_container: name: mycontainer container_config: - &quot;lxc.start.auto = 0&quot; - name: second config update lxc_container: name: mycontainer container_config: - &quot;lxc.start.auto = 1&quot;"><pre class="notranslate"><code class="notranslate"> --- - hosts: myhost tasks: - name: fist config update lxc_container: name: mycontainer container_config: - "lxc.start.auto = 0" - name: second config update lxc_container: name: mycontainer container_config: - "lxc.start.auto = 1" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ grep start mycontainer/config lxc.start.auto = 1"><pre class="notranslate"><code class="notranslate">$ grep start mycontainer/config lxc.start.auto = 1 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ grep start mycontainer/config lxc.start.auto = 0 lxc.start.auto = 1"><pre class="notranslate"><code class="notranslate">$ grep start mycontainer/config lxc.start.auto = 0 lxc.start.auto = 1 </code></pre></div> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147239210" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/1998" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-extras/issues/1998/hovercard" href="https://github.com/ansible/ansible-modules-extras/issues/1998">ansible/ansible-modules-extras#1998</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">Conditionals</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Have discovered this with Ubuntu 17.04 managing Centos 7.3.<br> Reproduced for this report with Ubuntu 17.04 targeting itself.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">is defined works as expected when the variable it is used against is not defined.<br> However, when the variable exists, but depends on an undefined variable, it fails, instead of returning false.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Will upload a minimal test case role.</p> <p dir="auto">Run:<br> ansible-playbook -i inventory playbook.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The role def has 2 conditional steps. Since the variables are (directly or indirectly) not defined, they should both be skipped.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The 2nd task makes the playbook fail.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [def : Problematic step.] ********************************************************************************************************************************************************************** fatal: [thismachine]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;The conditional check 'dependent is defined' failed. The error was: error while evaluating conditional (dependent is defined): I use {{ variable }}.: 'variable' is undefined\n\nThe error appears to have been in '/home/xalkina/tmp/defined/roles/def/tasks/main.yml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Problematic step.\n ^ here\n&quot;} to retry, use: --limit @/home/xalkina/tmp/defined/playbook.retry"><pre class="notranslate"><code class="notranslate">TASK [def : Problematic step.] ********************************************************************************************************************************************************************** fatal: [thismachine]: FAILED! =&gt; {"failed": true, "msg": "The conditional check 'dependent is defined' failed. The error was: error while evaluating conditional (dependent is defined): I use {{ variable }}.: 'variable' is undefined\n\nThe error appears to have been in '/home/xalkina/tmp/defined/roles/def/tasks/main.yml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Problematic step.\n ^ here\n"} to retry, use: --limit @/home/xalkina/tmp/defined/playbook.retry </code></pre></div>
0
<ul dir="auto"> <li>[ x ] I tried using the <code class="notranslate">@types/jquery</code> package and had problems.</li> <li>[ x ] I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a> (3.1.6)</li> <li>[ x ] I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li>[ x ] <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/leonard-thieu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/leonard-thieu">@leonard-thieu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/borisyankov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/borisyankov">@borisyankov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Steve-Fenton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Steve-Fenton">@Steve-Fenton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Diullei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Diullei">@Diullei</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tasoili/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tasoili">@tasoili</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jasonswearingen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jasonswearingen">@jasonswearingen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seanski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seanski">@seanski</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Guuz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Guuz">@Guuz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ksummerlin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ksummerlin">@ksummerlin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/basarat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/basarat">@basarat</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nwolverson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nwolverson">@nwolverson</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/derekcicerone/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/derekcicerone">@derekcicerone</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AndrewGaspar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AndrewGaspar">@AndrewGaspar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seikichi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seikichi">@seikichi</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/benjaminjackman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/benjaminjackman">@benjaminjackman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JoshStrobl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JoshStrobl">@JoshStrobl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DickvdBrink/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DickvdBrink">@DickvdBrink</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/King2500/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/King2500">@King2500</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/terrymun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/terrymun">@terrymun</a></li> </ul> </li> </ul> <p dir="auto">I'm getting multiple errors when building a project that depends on @types/jquery@3.3.22, using TypeScript 3.1.6:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" node_modules/@types/jquery/JQuery.d.ts:6356:141 - error TS2344: Type 'TReturn' does not satisfy the constraint 'Node'. 6356 map&lt;TReturn&gt;(callback: (this: TElement, index: number, domElement: TElement) =&gt; JQuery.TypeOrArray&lt;TReturn&gt; | null | undefined): JQuery&lt;TReturn&gt;; ~~~~~~~ node_modules/@types/jquery/JQueryStatic.d.ts:172:27 - error TS2344: Type 'T' does not satisfy the constraint 'Node'. 172 &lt;T&gt;(selection: JQuery&lt;T&gt;): JQuery&lt;T&gt;; ~ node_modules/@types/jquery/JQueryStatic.d.ts:172:39 - error TS2344: Type 'T' does not satisfy the constraint 'Node'. 172 &lt;T&gt;(selection: JQuery&lt;T&gt;): JQuery&lt;T&gt;; ~ node_modules/@types/jquery/JQueryStatic.d.ts:192:93 - error TS2344: Type 'TElement' does not satisfy the constraint 'Node'. 192 &lt;TElement = HTMLElement&gt;(callback: ((this: Document, $: JQueryStatic) =&gt; void)): JQuery&lt;TElement&gt;; ~~~~~~~ node_modules/@types/jquery/JQueryStatic.d.ts:199:55 - error TS2344: Type 'T' does not satisfy the constraint 'Node'. Type 'PlainObject&lt;any&gt;' is not assignable to type 'Node'. Property 'baseURI' is missing in type 'PlainObject&lt;any&gt;'. 199 &lt;T extends JQuery.PlainObject&gt;(object: T): JQuery&lt;T&gt;; ~ node_modules/@types/jquery/JQueryStatic.d.ts:206:40 - error TS2344: Type 'TElement' does not satisfy the constraint 'Node'. 206 &lt;TElement = HTMLElement&gt;(): JQuery&lt;TElement&gt;; ~~~~~~~~"><pre class="notranslate"><code class="notranslate"> node_modules/@types/jquery/JQuery.d.ts:6356:141 - error TS2344: Type 'TReturn' does not satisfy the constraint 'Node'. 6356 map&lt;TReturn&gt;(callback: (this: TElement, index: number, domElement: TElement) =&gt; JQuery.TypeOrArray&lt;TReturn&gt; | null | undefined): JQuery&lt;TReturn&gt;; ~~~~~~~ node_modules/@types/jquery/JQueryStatic.d.ts:172:27 - error TS2344: Type 'T' does not satisfy the constraint 'Node'. 172 &lt;T&gt;(selection: JQuery&lt;T&gt;): JQuery&lt;T&gt;; ~ node_modules/@types/jquery/JQueryStatic.d.ts:172:39 - error TS2344: Type 'T' does not satisfy the constraint 'Node'. 172 &lt;T&gt;(selection: JQuery&lt;T&gt;): JQuery&lt;T&gt;; ~ node_modules/@types/jquery/JQueryStatic.d.ts:192:93 - error TS2344: Type 'TElement' does not satisfy the constraint 'Node'. 192 &lt;TElement = HTMLElement&gt;(callback: ((this: Document, $: JQueryStatic) =&gt; void)): JQuery&lt;TElement&gt;; ~~~~~~~ node_modules/@types/jquery/JQueryStatic.d.ts:199:55 - error TS2344: Type 'T' does not satisfy the constraint 'Node'. Type 'PlainObject&lt;any&gt;' is not assignable to type 'Node'. Property 'baseURI' is missing in type 'PlainObject&lt;any&gt;'. 199 &lt;T extends JQuery.PlainObject&gt;(object: T): JQuery&lt;T&gt;; ~ node_modules/@types/jquery/JQueryStatic.d.ts:206:40 - error TS2344: Type 'TElement' does not satisfy the constraint 'Node'. 206 &lt;TElement = HTMLElement&gt;(): JQuery&lt;TElement&gt;; ~~~~~~~~ </code></pre></div>
<p dir="auto"><a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/pickadate/pickadate.d.ts">https://github.com/borisyankov/DefinitelyTyped/blob/master/pickadate/pickadate.d.ts</a><br> <a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery.pickadate/jquery.pickadate.d.ts">https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery.pickadate/jquery.pickadate.d.ts</a></p>
0
<p dir="auto">Currently, <a href="https://github.com/mrdoob/three.js/blob/bda55a3bf0bc3f181b295a1c34997935f8ed7f1e/examples/js/loaders/GLTFLoader.js#L213">GLTFParser</a> and constants in <a href="https://github.com/mrdoob/three.js/blob/dev/examples/js/loaders/GLTFLoader.js">GLTFLoader</a> are scoped and cannot be used in user-land.<br> However, sometimes it is needed.</p> <p dir="auto">Usecases:</p> <ul dir="auto"> <li>glTF-ish file may need special parsing using modified(extended) GLTFParser.</li> <li>glTF models may be supplied in JSON or JSONP format from a WebApp API rather than files and need GLTFParser directly.</li> </ul> <p dir="auto">Also, <a href="https://github.com/mrdoob/three.js/blob/bda55a3bf0bc3f181b295a1c34997935f8ed7f1e/examples/js/loaders/GLTFLoader.js#L1088-L1195"><code class="notranslate">WEBGL_CONSTANTS</code> and other constants</a> would be useful if available under <code class="notranslate">THREE</code> or somewhere</p> <p dir="auto">What I would like to have is:</p> <ul dir="auto"> <li><code class="notranslate">THREE.GLTFParser</code></li> </ul> <p dir="auto">and maybe:</p> <ul dir="auto"> <li><code class="notranslate">gltfLoaderInstance.gltfParser</code></li> <li><code class="notranslate">THREE.WEBGL_CONSTANTS.FLOAT = 5126</code> and so on</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">If you have multiple threejs objects on a page that each use LoadingManager only one of the objects will fire the LoadManager onLoad call back.</p> <p dir="auto">The problem is in the FileLoader in its load call. In the broken case all we do in the FileLoader load is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if ( loading[ url ] !== undefined ) { loading[ url ].push( { onLoad: onLoad, onProgress: onProgress, onError: onError } ); return; }"><pre class="notranslate"><code class="notranslate">if ( loading[ url ] !== undefined ) { loading[ url ].push( { onLoad: onLoad, onProgress: onProgress, onError: onError } ); return; } </code></pre></div> <p dir="auto">The above code causes a return without ever telling the different manager itemStart. Not exactly sure how you want to fix but the above needs to identify if different load requests come from different managers and if it is the first time for a particular manager trigger its itemStart then when the file is done we also need to trigger all the different managers itemEnd.</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> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <h2 dir="auto">example html to reproduce problem</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;html&gt; &lt;head&gt; &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/three.js/103/three.js&quot;&gt;&lt;/script&gt; &lt;style&gt; #test1 { width: 200px; height: 200px; } #test2 { width: 200px; height: 200px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&quot;test1&quot;&gt;&lt;/div&gt; &lt;div id=&quot;test2&quot;&gt;&lt;/div&gt; &lt;/body&gt; &lt;script&gt; class word { constructor(target) { this.scene = new THREE.Scene(); this.camera = new THREE.PerspectiveCamera( 75, target.offsetWidth/target.offsetHeight, 0.1, 1000 ); this.camera.position.z = 100; this.renderer = new THREE.WebGLRenderer({antialias:true}); this.renderer.setSize( target.offsetWidth, target.offsetHeight ); target.appendChild( this.renderer.domElement ); this.scene.background = new THREE.Color(0xFFFFFF); var light = new THREE.AmbientLight(0xFFFFFF); this.scene.add(light); var manager = new THREE.LoadingManager(); manager.onLoad = this.draw.bind(this); new THREE.FontLoader(manager).load(&quot;https://threejs.org/examples/fonts/optimer_bold.typeface.json&quot;,this.savefont.bind(this)); } savefont(font) { this.font = font; } draw() { var geometry = new THREE.TextGeometry(&quot;Test&quot;,{ font: this.font, size: 50, height: 1, curveSegments: 4 }); geometry.center(); var material = new THREE.MeshLambertMaterial( { color: 0x0000EE } ); var word = new THREE.Mesh( geometry, material ); this.scene.add( word ); this.render(); } render() { requestAnimationFrame( this.render.bind(this) ); this.renderer.render(this.scene,this.camera); } } new word(document.getElementById(&quot;test1&quot;)); new word(document.getElementById(&quot;test2&quot;)); &lt;/script&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;html&gt; &lt;head&gt; &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/103/three.js"&gt;&lt;/script&gt; &lt;style&gt; #test1 { width: 200px; height: 200px; } #test2 { width: 200px; height: 200px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="test1"&gt;&lt;/div&gt; &lt;div id="test2"&gt;&lt;/div&gt; &lt;/body&gt; &lt;script&gt; class word { constructor(target) { this.scene = new THREE.Scene(); this.camera = new THREE.PerspectiveCamera( 75, target.offsetWidth/target.offsetHeight, 0.1, 1000 ); this.camera.position.z = 100; this.renderer = new THREE.WebGLRenderer({antialias:true}); this.renderer.setSize( target.offsetWidth, target.offsetHeight ); target.appendChild( this.renderer.domElement ); this.scene.background = new THREE.Color(0xFFFFFF); var light = new THREE.AmbientLight(0xFFFFFF); this.scene.add(light); var manager = new THREE.LoadingManager(); manager.onLoad = this.draw.bind(this); new THREE.FontLoader(manager).load("https://threejs.org/examples/fonts/optimer_bold.typeface.json",this.savefont.bind(this)); } savefont(font) { this.font = font; } draw() { var geometry = new THREE.TextGeometry("Test",{ font: this.font, size: 50, height: 1, curveSegments: 4 }); geometry.center(); var material = new THREE.MeshLambertMaterial( { color: 0x0000EE } ); var word = new THREE.Mesh( geometry, material ); this.scene.add( word ); this.render(); } render() { requestAnimationFrame( this.render.bind(this) ); this.renderer.render(this.scene,this.camera); } } new word(document.getElementById("test1")); new word(document.getElementById("test2")); &lt;/script&gt; &lt;/html&gt; </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=zdv" rel="nofollow">Dmitry V. Zemnitskiy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3849?redirect=false" rel="nofollow">SPR-3849</a></strong> and commented</p> <p dir="auto">Copied from <a href="http://forum.springframework.org/showthread.php?p=140845" rel="nofollow">http://forum.springframework.org/showthread.php?p=140845</a><br> Also see <a href="http://forum.springframework.org/showthread.php?t=31531" rel="nofollow">http://forum.springframework.org/showthread.php?t=31531</a></p> <p dir="auto">I just checked with latest available spring (2.0.6), hibernate (3.2.5), hibernate entity manager and MS SQL database (both MSDE and MS SQL Server 2000), jtds driver.</p> <p dir="auto">As I see it is still not solved, that is, with declarative transactions and exception translation, having business manager class annotated with <code class="notranslate">@Repository</code> and business method annotated with <code class="notranslate">@Transactional</code> (no nested transactions), example configuration below:</p> <p dir="auto">Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;entityManagerFactory&quot; class=&quot;org.springframework.orm.jpa.LocalEntityManagerFactoryBean&quot;&gt; &lt;property name=&quot;persistenceUnitName&quot; value=&quot;${jpa.persistence.unit}&quot; /&gt; &lt;property name=&quot;jpaVendorAdapter&quot; ref=&quot;hibernateAdapter&quot; /&gt; &lt;/bean&gt; &lt;bean name=&quot;hibernateAdapter&quot; class=&quot;org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter&quot; /&gt; &lt;bean id=&quot;transactionManager&quot; class=&quot;org.springframework.orm.jpa.JpaTransactionManager&quot;&gt; &lt;property name=&quot;entityManagerFactory&quot; ref=&quot;entityManagerFactory&quot; /&gt; &lt;/bean&gt; &lt;bean class=&quot;org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor&quot; /&gt; &lt;bean class=&quot;org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor&quot; /&gt; &lt;bean id=&quot;entityManager&quot; class=&quot;org.springframework.orm.jpa.support.SharedEntityManagerBean&quot;&gt; &lt;property name=&quot;entityManagerFactory&quot; ref=&quot;entityManagerFactory&quot; /&gt; &lt;/bean&gt; &lt;tx:annotation-driven transaction-manager=&quot;transactionManager&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"&gt; &lt;property name="persistenceUnitName" value="${jpa.persistence.unit}" /&gt; &lt;property name="jpaVendorAdapter" ref="hibernateAdapter" /&gt; &lt;/bean&gt; &lt;bean name="hibernateAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" /&gt; &lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt; &lt;property name="entityManagerFactory" ref="entityManagerFactory" /&gt; &lt;/bean&gt; &lt;bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" /&gt; &lt;bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" /&gt; &lt;bean id="entityManager" class="org.springframework.orm.jpa.support.SharedEntityManagerBean"&gt; &lt;property name="entityManagerFactory" ref="entityManagerFactory" /&gt; &lt;/bean&gt; &lt;tx:annotation-driven transaction-manager="transactionManager" /&gt; </code></pre></div> <p dir="auto">I get UnexpectedRollbackException caused by integrity violation exception, because actual database operation and constraints verification are seems deferred to commit() in MS SQL (much like in Oracle I think).</p> <p dir="auto">Here's exception stack trace:</p> <p dir="auto">Code:</p> <p dir="auto">org.springframework.transaction.UnexpectedRollbackException: JPA transaction unexpectedly rolled back (maybe marked rollback-only after a failed operation); nested exception is javax.persistence.RollbackException: Error while commiting the transaction<br> Caused by:<br> javax.persistence.RollbackException: Error while commiting the transaction<br> at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71)<br> at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:433)<br> at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662)<br> at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)<br> at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314)<br> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:117)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)<br> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)<br> at $Proxy34.handleChangeMsisdn(Unknown Source)<br> at com.vyke.mobile.server.io.ConnectionHandlerImpl.packetReceived(ConnectionHandlerImpl.java:254)</p> <p dir="auto">... removed application code calls ...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at java.lang.Thread.run(Unknown Source)"><pre class="notranslate"><code class="notranslate">at java.lang.Thread.run(Unknown Source) </code></pre></div> <p dir="auto">Caused by: org.hibernate.exception.ConstraintViolationException: could not update: [com.vyke.mobile.server.domain.Client#4]<br> at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)<br> at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)<br> at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2425)<br> at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)<br> at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)<br> at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)<br> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)<br> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)<br> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)<br> at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)<br> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)<br> at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)<br> at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)<br> at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)<br> at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)<br> ... 29 more<br> Caused by: java.sql.SQLException: Violation of UNIQUE KEY constraint 'UQ__Client__72C60C4A'. Cannot insert duplicate key in object 'Client'.<br> at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)<br> at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)<br> at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)<br> at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:628)<br> at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:525)<br> at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:487)<br> at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeUpdate(JtdsPreparedStatement.java:421)<br> at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:23)<br> at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403)<br> ... 41 more</p> <p dir="auto">I found very similar problem description here :</p> <p dir="auto"><a href="http://forum.springframework.org/showthread.php?t=31531" rel="nofollow">http://forum.springframework.org/showthread.php?t=31531</a></p> <p dir="auto">it is dated by last year..</p> <p dir="auto">I was able to solve the problem only by verification during business method invocation if conflicting record already exists in database using extra select statement.</p> <p dir="auto">IMO it is very rough solution and quite bad problem in Spring, as the situation is quite common and it voids all efforts made to improve persistence exception<br> handling in Spring at all.</p> <p dir="auto">Regards,<br> Dima</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.5, 2.0.6, 2.1 M3</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dmitriy" rel="nofollow">Dmitriy Kopylenko</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-163?redirect=false" rel="nofollow">SPR-163</a></strong> and commented</p> <p dir="auto">There is a notion of Errors &lt;&lt;interface&gt;&gt;, so during validation there might be some property values rejected. We treat Errors as critical e.g. in Controllers after validation we check Errors collection and if not empty we <strong>DO NOT</strong> proceed (invoke the middle tier). There are some use cases however that state - some validations should be treated as <strong>WARNINGS</strong> e.g. if the rule is not satisfied, just display a warning message to the user, but still proceed with the workflow.</p> <p dir="auto">I'm not sure if that's been solved already, but in any case, would be nice to create a Warnings &lt;&lt;interface&gt;&gt; to distinguish between those to concepts (Errors -&gt; do not proceed, Warnings -&gt; still proceed)</p> <ul dir="auto"> <li>Dmitriy.</li> </ul> <hr> <p dir="auto"><strong>Affects:</strong> 1.1 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="398061072" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6123" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6123/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6123">#6123</a> Expand Errors object to be a Messages object (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">22 votes, 15 watchers</p>
0
<p dir="auto">When using CircularProgressIndicator as a loading screen, Google Play console pre-launch report complains "This item may not have a label readable by screen readers.".</p> <p dir="auto">It's not clear from the documentation how to force Semantics for CircularProgressIndicator or to have some hidden label to pass such accessibility tests.</p> <h2 dir="auto">Steps to Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" return new Scaffold( body: new Center( child: new CircularProgressIndicator(), ), );"><pre class="notranslate"><code class="notranslate"> return new Scaffold( body: new Center( child: new CircularProgressIndicator(), ), ); </code></pre></div> <h2 dir="auto">Result</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7678445/47297635-eafe6d00-d615-11e8-8cf3-75b7a23ab9c5.png"><img src="https://user-images.githubusercontent.com/7678445/47297635-eafe6d00-d615-11e8-8cf3-75b7a23ab9c5.png" alt="flutter_loading" style="max-width: 100%;"></a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8) • Flutter version 0.9.4 at /home/flutter/flutter_v0.9.4-beta • Framework revision f37c235c32 (4 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/android/sdk • Java binary at: /home/android/src/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /home/android/src/android-studio • Flutter plugin version 24.2.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) • No issues found! "><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8) • Flutter version 0.9.4 at /home/flutter/flutter_v0.9.4-beta • Framework revision f37c235c32 (4 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/android/sdk • Java binary at: /home/android/src/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /home/android/src/android-studio • Flutter plugin version 24.2.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) • No issues found! </code></pre></div>
<p dir="auto">Render invalid in Thai<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/526890/38504263-6c3000a4-3c3e-11e8-8eb4-74a6f4320ab4.png"><img src="https://user-images.githubusercontent.com/526890/38504263-6c3000a4-3c3e-11e8-8eb4-74a6f4320ab4.png" alt="2018-04-09 21 36 11" style="max-width: 100%;"></a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2</li> <li>Operating System version: docker</li> <li>Java version: 18</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">服务端开启了validate=true , 依赖也加入了,但是<code class="notranslate">org.hibernate.validator.engine.ConfigurationImpl</code> 都没有这个类,服务调用都时候弄了这个类。</p> <p dir="auto">已经查阅过的链接<br> <a href="https://blog.csdn.net/hengyunabc/article/details/71513509" rel="nofollow">https://blog.csdn.net/hengyunabc/article/details/71513509</a></p> <ol dir="auto"> <li>validate=true</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to invoke remote method: stopNotifyJob, provider: dubbo://10.4.3.136:30001/com.raycloud.notify.api.service.NotifyJobRequest?application=demo-docker&amp;application.version=1.0.0ValidationAutoConfiguration&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.xxxxx.xxxx.xxx.service.xxxxx&amp;methods=xxxx,xxx,xxx&amp;pid=56&amp;register.ip=10.0.0.72&amp;revision=2.0.1&amp;side=consumer&amp;timeout=20000&amp;timestamp=1574320167228&amp;version=2.0.1-vpc, cause: com.alibaba.dubbo.rpc.RpcException: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl com.alibaba.dubbo.rpc.RpcException: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl at com.alibaba.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:54) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.raycloud.dubbo.rpc.filter.DubboConcurrentMonitor.invoke(DubboConcurrentMonitor.java:58) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.raycloud.eagle.trace.dubbo.DubboInvokeMonitorFilter.invoke(DubboInvokeMonitorFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:60) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:112) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52) at com.alibaba.dubbo.remoting.transport.dispather.ChannelEventRunnable.run(ChannelEventRunnable.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41) at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) at com.alibaba.dubbo.validation.support.jvalidation.JValidator.&lt;init&gt;(JValidator.java:86) at com.alibaba.dubbo.validation.support.jvalidation.JValidation.createValidator(JValidation.java:31) at com.alibaba.dubbo.validation.support.AbstractValidation.getValidator(AbstractValidation.java:38) at com.alibaba.dubbo.validation.Validation$Adpative.getValidator(Validation$Adpative.java) at com.alibaba.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:47) ... 29 more"><pre class="notranslate"><code class="notranslate">Failed to invoke remote method: stopNotifyJob, provider: dubbo://10.4.3.136:30001/com.raycloud.notify.api.service.NotifyJobRequest?application=demo-docker&amp;application.version=1.0.0ValidationAutoConfiguration&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.xxxxx.xxxx.xxx.service.xxxxx&amp;methods=xxxx,xxx,xxx&amp;pid=56&amp;register.ip=10.0.0.72&amp;revision=2.0.1&amp;side=consumer&amp;timeout=20000&amp;timestamp=1574320167228&amp;version=2.0.1-vpc, cause: com.alibaba.dubbo.rpc.RpcException: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl com.alibaba.dubbo.rpc.RpcException: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl at com.alibaba.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:54) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.raycloud.dubbo.rpc.filter.DubboConcurrentMonitor.invoke(DubboConcurrentMonitor.java:58) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.raycloud.eagle.trace.dubbo.DubboInvokeMonitorFilter.invoke(DubboInvokeMonitorFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:60) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:112) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52) at com.alibaba.dubbo.remoting.transport.dispather.ChannelEventRunnable.run(ChannelEventRunnable.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41) at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) at com.alibaba.dubbo.validation.support.jvalidation.JValidator.&lt;init&gt;(JValidator.java:86) at com.alibaba.dubbo.validation.support.jvalidation.JValidation.createValidator(JValidation.java:31) at com.alibaba.dubbo.validation.support.AbstractValidation.getValidator(AbstractValidation.java:38) at com.alibaba.dubbo.validation.Validation$Adpative.getValidator(Validation$Adpative.java) at com.alibaba.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:47) ... 29 more </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: macOS 10.15.1、任意Linux发行版</li> <li>Java version: 1.8</li> </ul> <p dir="auto">参考<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427559139" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3784" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3784/hovercard" href="https://github.com/apache/dubbo/issues/3784">#3784</a>,Version.parseInt未再判断字符串的合法性,也未做异常处理</p> <p dir="auto">该bug还未修复。version从文件名获取,当文件名是dubbo-client.jar,解析得到version = "client" 时,isSupportResponseAttachment(Version.java:102) 中的代码块<br> if (StringUtils.isEmpty(version)) {<br> return false;<br> }<br> 就失效了。<br> 后续Version.parseInt未再判断字符串的合法性,也未做异常处理。<br> 也就是会报错如下:<br> 11/28 15:03:45.504 WARN org.apache.dubbo.remoting.exchange.codec.ExchangeCodec [NettyServerWorker-6-7] [DUBBO] Fail to encode response: Response [id=0, version=client, status=20, event=false, error=null, result=AppResponse [value=cn.pengh.core.rpc.RpcResponse@49995603, exception=null]], send bad_response info instead, cause: For input string: "", dubbo version: 2.7.3, current host: 192.168.6.46<br> java.lang.NumberFormatException: For input string: ""<br> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_201]<br> at java.lang.Integer.parseInt(Integer.java:592) ~[?:1.8.0_201]<br> at java.lang.Integer.parseInt(Integer.java:615) ~[?:1.8.0_201]<br> at org.apache.dubbo.common.Version.parseInt(Version.java:133) ~[dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.common.Version.getIntVersion(Version.java:118) ~[dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.common.Version.isSupportResponseAttachment(Version.java:102) ~[dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.encodeResponseData(DubboCodec.java:195) ~[dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeResponse(ExchangeCodec.java:283) [dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:71) [dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40) [dubbo-2.7.3.jar:2.7.3]<br> at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70) [dubbo-2.7.3.jar:2.7.3]<br> at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:716) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:708) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:791) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:701) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:303) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:716) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:708) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:791) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:701) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:115) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at org.apache.dubbo.remoting.transport.netty4.NettyServerHandler.write(NettyServerHandler.java:103) [dubbo-2.7.3.jar:2.7.3]<br> at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:716) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:708) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext.access$1700(AbstractChannelHandlerContext.java:56) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.write(AbstractChannelHandlerContext.java:1102) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext$WriteAndFlushTask.write(AbstractChannelHandlerContext.java:1149) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.run(AbstractChannelHandlerContext.java:1073) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.43.Final.jar:4.1.43.Final]<br> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]</p>
0
<p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Saving matplotlib polar plots on Windows 7 and Windows 10, with MiKTex 2.9.7.000, fails for some formats (e.g., pdf, svg) and works for others (e.g., png, jpg)</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams['text.usetex'] = True plt.figure() ax = plt.subplot(111, polar=True) plt.savefig('foo.png') # Works plt.savefig('foo.jpg') # Works plt.savefig('foo.tif') # Works # plt.savefig('foo.pdf') # Fails # plt.savefig('foo.svg') # Fails plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-s1">mpl</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'text.usetex'</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplot</span>(<span class="pl-c1">111</span>, <span class="pl-s1">polar</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'foo.png'</span>) <span class="pl-c"># Works</span> <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'foo.jpg'</span>) <span class="pl-c"># Works</span> <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'foo.tif'</span>) <span class="pl-c"># Works</span> <span class="pl-c"># plt.savefig('foo.pdf') # Fails</span> <span class="pl-c"># plt.savefig('foo.svg') # Fails</span> <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">"Error saving .... " window pops up with error code b'tcss1000' for pdf, and b'tcss3583' for svg. (The numbers change)</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 7 &amp; 10</li> <li>Matplotlib version: 2.2.2 or 3.0.3</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: 3.6</li> <li>Jupyter version (if applicable): N/A</li> <li>Other libraries: N/A</li> </ul> <p dir="auto">Installed via Anaconda3</p>
<p dir="auto">Saving vector graphic figures with certain characters in LaTeX will fail. Here I tried to use the <code class="notranslate">\textmu</code> character. Could it be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="207066352" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/8068" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/8068/hovercard" href="https://github.com/matplotlib/matplotlib/issues/8068">#8068</a>?</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">Here I'm saving to PostScript. It gives an error that I think is the most informative and points to some problems with ghostscript. Outputs for SVG and PDF below.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib matplotlib.rcParams['text.usetex'] = True import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.set_ylabel(r'\textmu') plt.savefig('fig.ps')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'text.usetex'</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>) <span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">r'\textmu'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'fig.ps'</span>)</pre></div> <p dir="auto"><strong>Output - PS</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py&quot;, line 1520, in gs_distill report = subprocess.check_output(command, stderr=subprocess.STDOUT) File &quot;/usr/lib/python3.6/subprocess.py&quot;, line 336, in check_output **kwargs).stdout File &quot;/usr/lib/python3.6/subprocess.py&quot;, line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['gs', '-dBATCH', '-dNOPAUSE', '-r6000', '-sDEVICE=ps2write', '-sPAPERSIZE=letter', '-sOutputFile=/tmp/tmpt8w23igm.ps', '/tmp/tmpt8w23igm']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;Untitled.py&quot;, line 8, in &lt;module&gt; plt.savefig('fig.ps') File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py&quot;, line 701, in savefig res = fig.savefig(*args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py&quot;, line 1834, in savefig self.canvas.print_figure(fname, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py&quot;, line 2267, in print_figure **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py&quot;, line 910, in print_ps return self._print_ps(outfile, 'ps', *args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py&quot;, line 937, in _print_ps **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py&quot;, line 1359, in _print_figure_tex rotated=psfrag_rotated) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py&quot;, line 1525, in gs_distill '\n\n' % exc.output.decode(&quot;utf-8&quot;))) RuntimeError: ghostscript was not able to process your image. Here is the full report generated by ghostscript: GPL Ghostscript 9.22 (2017-10-04) Copyright (C) 2017 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /undefined in --get-- Operand stack: --nostringval-- --dict:9/18(ro)(L)-- 112 --dict:13/13(L)-- --dict:13/13(L)-- base Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2015 1 3 %oparray_pop 2014 1 3 %oparray_pop 1998 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- %finish_stringwidth --nostringval-- --nostringval-- 14 8 0 --nostringval-- (pdf_text_enum_t) %op_show_continue --nostringval-- Dictionary stack: --dict:986/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:5/6(ro)(L)-- --dict:180/300(L)-- --dict:44/200(L)-- --dict:8/17(L)-- --dict:51/90(L)-- Current allocation mode is local Last OS error: No such file or directory Current file position is 58919 GPL Ghostscript 9.22: Unrecoverable error, exit code 1"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1520, in gs_distill report = subprocess.check_output(command, stderr=subprocess.STDOUT) File "/usr/lib/python3.6/subprocess.py", line 336, in check_output **kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['gs', '-dBATCH', '-dNOPAUSE', '-r6000', '-sDEVICE=ps2write', '-sPAPERSIZE=letter', '-sOutputFile=/tmp/tmpt8w23igm.ps', '/tmp/tmpt8w23igm']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "Untitled.py", line 8, in &lt;module&gt; plt.savefig('fig.ps') File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 701, in savefig res = fig.savefig(*args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1834, in savefig self.canvas.print_figure(fname, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2267, in print_figure **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 910, in print_ps return self._print_ps(outfile, 'ps', *args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 937, in _print_ps **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1359, in _print_figure_tex rotated=psfrag_rotated) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1525, in gs_distill '\n\n' % exc.output.decode("utf-8"))) RuntimeError: ghostscript was not able to process your image. Here is the full report generated by ghostscript: GPL Ghostscript 9.22 (2017-10-04) Copyright (C) 2017 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /undefined in --get-- Operand stack: --nostringval-- --dict:9/18(ro)(L)-- 112 --dict:13/13(L)-- --dict:13/13(L)-- base Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2015 1 3 %oparray_pop 2014 1 3 %oparray_pop 1998 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- %finish_stringwidth --nostringval-- --nostringval-- 14 8 0 --nostringval-- (pdf_text_enum_t) %op_show_continue --nostringval-- Dictionary stack: --dict:986/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:5/6(ro)(L)-- --dict:180/300(L)-- --dict:44/200(L)-- --dict:8/17(L)-- --dict:51/90(L)-- Current allocation mode is local Last OS error: No such file or directory Current file position is 58919 GPL Ghostscript 9.22: Unrecoverable error, exit code 1 </code></pre></div> <p dir="auto"><strong>Output - SVG, PDF</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;Untitled.py&quot;, line 8, in &lt;module&gt; plt.savefig('fig.svg') File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py&quot;, line 701, in savefig res = fig.savefig(*args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py&quot;, line 1834, in savefig self.canvas.print_figure(fname, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py&quot;, line 2267, in print_figure **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py&quot;, line 1193, in print_svg return self._print_svg(filename, svgwriter, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py&quot;, line 1248, in _print_svg self.figure.draw(renderer) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py&quot;, line 1299, in draw renderer, self, artists, self.suppressComposite) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py&quot;, line 138, in _draw_list_compositing_images a.draw(renderer) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axes/_base.py&quot;, line 2437, in draw mimage._draw_list_compositing_images(renderer, self, artists) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py&quot;, line 138, in _draw_list_compositing_images a.draw(renderer) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axis.py&quot;, line 1147, in draw self.label.draw(renderer) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py&quot;, line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/text.py&quot;, line 762, in draw mtext=mtext) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py&quot;, line 1150, in draw_tex self._draw_text_as_path(gc, x, y, s, prop, angle, ismath=&quot;TeX&quot;) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py&quot;, line 950, in _draw_text_as_path return_new_glyphs_only=True) File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/textpath.py&quot;, line 335, in get_glyphs_tex font_bunch = self.tex_font_map[dvifont.texname] File &quot;/home/mirek/.local/lib/python3.6/site-packages/matplotlib/dviread.py&quot;, line 850, in __getitem__ result = self._font[texname] KeyError: b'tcss3583'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "Untitled.py", line 8, in &lt;module&gt; plt.savefig('fig.svg') File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 701, in savefig res = fig.savefig(*args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1834, in savefig self.canvas.print_figure(fname, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2267, in print_figure **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1193, in print_svg return self._print_svg(filename, svgwriter, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1248, in _print_svg self.figure.draw(renderer) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1299, in draw renderer, self, artists, self.suppressComposite) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images a.draw(renderer) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 2437, in draw mimage._draw_list_compositing_images(renderer, self, artists) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images a.draw(renderer) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axis.py", line 1147, in draw self.label.draw(renderer) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/text.py", line 762, in draw mtext=mtext) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1150, in draw_tex self._draw_text_as_path(gc, x, y, s, prop, angle, ismath="TeX") File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 950, in _draw_text_as_path return_new_glyphs_only=True) File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/textpath.py", line 335, in get_glyphs_tex font_bunch = self.tex_font_map[dvifont.texname] File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/dviread.py", line 850, in __getitem__ result = self._font[texname] KeyError: b'tcss3583' </code></pre></div> <p dir="auto">For PDF it's nearly identical; the last line reads:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KeyError: b'tcss1000'"><pre class="notranslate"><code class="notranslate">KeyError: b'tcss1000' </code></pre></div> <p dir="auto">In case of PS and SVG, no file is produced. In case of PDF, a corrupted file results. Saving to raster formats and inline previews in jupyter notebook work fine.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Debian 10</li> <li>Matplotlib version: 2.1.1</li> <li>Python version: 3.6.4</li> </ul> <p dir="auto">Matplotlib from pip. Both Matplotlib and LaTeX are installed in userspace</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Artifacts appear when plotting periodic data with discontinuities, i.e. something like x mod 1.0<br> The bug appears at when render resolution is relatively small comparing to the real resolution of the data (downsampling problem?).</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt xx, yy = np.meshgrid(np.linspace(-5, 5, 201), np.linspace(-5, 5, 201)) psi = xx % 1.0 plt.figure() plt.imshow(psi, cmap=&quot;twilight&quot;) plt.savefig(&quot;small.png&quot;, dpi=100) plt.savefig(&quot;large.png&quot;, dpi=200)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">xx</span>, <span class="pl-s1">yy</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">5</span>, <span class="pl-c1">5</span>, <span class="pl-c1">201</span>), <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">5</span>, <span class="pl-c1">5</span>, <span class="pl-c1">201</span>)) <span class="pl-s1">psi</span> <span class="pl-c1">=</span> <span class="pl-s1">xx</span> <span class="pl-c1">%</span> <span class="pl-c1">1.0</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">plt</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">psi</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">"twilight"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"small.png"</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"large.png"</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">200</span>)</pre></div> <p dir="auto"><strong>Outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11896426/113173843-173c6000-924a-11eb-907f-3bb546a0941b.png"><img src="https://user-images.githubusercontent.com/11896426/113173843-173c6000-924a-11eb-907f-3bb546a0941b.png" alt="alt text" width="40%" style="max-width: 100%;"></a> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11896426/113173851-199eba00-924a-11eb-95b4-97b2b6262ed7.png"><img src="https://user-images.githubusercontent.com/11896426/113173851-199eba00-924a-11eb-95b4-97b2b6262ed7.png" alt="alt text" width="40%" style="max-width: 100%;"></a></p> <p dir="auto">(large.png, small.png)</p> <p dir="auto"><strong>Matplotlib version</strong></p> <p dir="auto">The issue is repeatable locally and in CoLab:</p> <ul dir="auto"> <li>Operating system: Linux</li> <li>Matplotlib version: 3.3.3, 3.2.2</li> <li>Matplotlib backend (): TkAgg, ipykernel.pylab.backend_inline</li> <li>Python version: 3.8.5, 3.7</li> </ul>
<p dir="auto">After updating matplotlib version from 1.3.1 to 2.0.2, when I want to use plot_trisurf to generate a TIN by 3d-points, I got an incomprehensible result.<br> I just want to know the difference of plot_trisurf between matplotlib 2.0.2 and matplotlib 1.3.1. And how i can get the similar result?<br> the details about this issue are referred to <a href="https://stackoverflow.com/questions/44244297/plot-trisurf-of-matplotlib-2-0-2" rel="nofollow">https://stackoverflow.com/questions/44244297/plot-trisurf-of-matplotlib-2-0-2</a></p>
0
<p dir="auto">Something like <code class="notranslate">gofmt</code> is really useful.</p>
<p dir="auto">It would be really nice to have the pretty printer be good enough to use it as a code formatter, ala gofmt. It still has some issues (I've been working on it), but it is reasonably close to being usable in that way.</p> <p dir="auto">But, the commandline invocation is kind of unwieldy (and feels redundant). It seems like --pretty should just pretty print, and other stuff should be handled secondarily, ie with:</p> <p dir="auto">--pretty-expanded<br> --pretty-typed<br> --pretty-expanded-identified<br> --pretty-identified</p> <p dir="auto">Alternatively, perhaps it would make more sense to actually split it into a separate binary, called rustfmt (or, in longer-keyword land, rustformat).</p> <p dir="auto">Thoughts?</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>.):</p> <p dir="auto">NO, it is not a request of help, this is a BUG REPORT</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> <p dir="auto">HPA not down-scaling deployment<br> HPA not able to get load info</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">Tested to repeat on 1.3.5 and on 1.3.6</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GCE/GKE managed</li> <li><strong>OS</strong> (e.g. from /etc/os-release): PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux gke-k8s-test1-default-pool-72fe9503-8tvm 3.16.0-4-amd64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux</li> <li><strong>Install tools</strong>: gcloud</li> <li><strong>Others</strong>: N/A</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">We have development cluster with one of node pools of --min-nodes=2 and --max-nodes=3.<br> Normally cluster operates on 2 nodes in this pool.<br> Deployment under question specifically has a nodeSelector set to allocate nodes only to this pool.<br> Deployment under question has an HPA configured with maximum pod count of 20.</p> <p dir="auto">We observed a spike in the load, where HPA decided to allocate all 20 pods.</p> <p dir="auto">Due to CPU resource constraint, it triggered an additional node allocation: everything was as-expected at this time.</p> <p dir="auto">After additional node allocation, it was STILL NOT ENOUGH CPU to start all pods, but now limit on number of nodes was reached and pods were stuck in "Pending" state: as-expected.</p> <p dir="auto">What went wrong: after load was removed, HPA did not want to scale back to 1-2 pods we see normally running.</p> <p dir="auto">We found that HPA can not get CPU consumption info for some pods:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 4m 4m 2 {horizontal-pod-autoscaler } Warning FailedGetMetrics failed to get CPU consumption and request: metrics obtained for 20/22 of pods 4m 4m 2 {horizontal-pod-autoscaler } Warning FailedComputeReplicas failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 20/22 of pods "><pre class="notranslate"><code class="notranslate"> 4m 4m 2 {horizontal-pod-autoscaler } Warning FailedGetMetrics failed to get CPU consumption and request: metrics obtained for 20/22 of pods 4m 4m 2 {horizontal-pod-autoscaler } Warning FailedComputeReplicas failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 20/22 of pods </code></pre></div> <p dir="auto">It was suspicious it reports more pods than we see with "kubectl get pod -l ...", so we found the missing ones to be "stuck" and waiting to be reaped:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl get pod -a -l run=cm-worker NAME READY STATUS RESTARTS AGE cm-worker-2850697223-1wtmo 1/1 Running 0 11m cm-worker-2850697223-9evqk 1/1 Running 0 11m cm-worker-2850697223-dfhiu 0/1 OutOfCPU 0 5h cm-worker-2850697223-f6h9o 1/1 Running 0 11m [...] cm-worker-2850697223-wogui 1/1 Running 0 11m cm-worker-2850697223-zdxjg 0/1 OutOfCPU 0 4h "><pre class="notranslate"><code class="notranslate">kubectl get pod -a -l run=cm-worker NAME READY STATUS RESTARTS AGE cm-worker-2850697223-1wtmo 1/1 Running 0 11m cm-worker-2850697223-9evqk 1/1 Running 0 11m cm-worker-2850697223-dfhiu 0/1 OutOfCPU 0 5h cm-worker-2850697223-f6h9o 1/1 Running 0 11m [...] cm-worker-2850697223-wogui 1/1 Running 0 11m cm-worker-2850697223-zdxjg 0/1 OutOfCPU 0 4h </code></pre></div> <p dir="auto">At this point, we upgraded master from 1.3.5 to 1.3.6, but it did not resolve the situation.</p> <p dir="auto">Upon manual kill on these pods, cluster and HPA started to operate as appropriate: HPA scaled down and cluster scaled down node it did not need.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <ol dir="auto"> <li>It was expected that Kubernetes would properly discover and reap failed pods.</li> <li>It was expected that HPA would not consider dead pods for query of current load.</li> </ol> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">We are not sure we can reproduce, so we investigated to the root cause right in place.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">N/A</p>
<p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Kubernetes version</strong>: 1.3.5</li> <li><strong>Cloud provider or hardware configuration</strong>: Google Container Engine</li> <li><strong>Kernel</strong>: Linux 3.16.0-4-amd64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> We're using a HorizontalPodAutoscaler in our cluster to scale pods based on CPU load. While this is working for some deployments, one deployment seems to be in a broken state where the HPA tries to get cpu consumption from heapster for pods that do not exist.<br> The HPA was working for said deployment but started to misbehave after a scaling event.</p> <p dir="auto">Result from <code class="notranslate">kubectl get pods</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="… gosu-main-api-v1-3735438065-5n8t7 2/2 Running 1 2h gosu-main-api-v1-3735438065-j027w 2/2 Running 1 2h gosu-main-api-v1-3735438065-rydr6 2/2 Running 1 2h gosu-main-api-v1-3735438065-vf59h 2/2 Running 1 2h gosu-main-api-v1-3735438065-w4hzm 2/2 Running 1 2h …"><pre class="notranslate"><code class="notranslate">… gosu-main-api-v1-3735438065-5n8t7 2/2 Running 1 2h gosu-main-api-v1-3735438065-j027w 2/2 Running 1 2h gosu-main-api-v1-3735438065-rydr6 2/2 Running 1 2h gosu-main-api-v1-3735438065-vf59h 2/2 Running 1 2h gosu-main-api-v1-3735438065-w4hzm 2/2 Running 1 2h … </code></pre></div> <p dir="auto">Result from <code class="notranslate">kubectl get hpa</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NAME REFERENCE TARGET CURRENT MINPODS MAXPODS AGE … gosu-main-api-v1 Deployment/gosu-main-api-v1 75% &lt;waiting&gt; 3 20 28m …"><pre class="notranslate"><code class="notranslate">NAME REFERENCE TARGET CURRENT MINPODS MAXPODS AGE … gosu-main-api-v1 Deployment/gosu-main-api-v1 75% &lt;waiting&gt; 3 20 28m … </code></pre></div> <p dir="auto">Result from <code class="notranslate">kubectl describe hpa gosu-main-api-v1</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Name: gosu-main-api-v1 Namespace: default Labels: &lt;none&gt; Annotations: &lt;none&gt; CreationTimestamp: Sat, 27 Aug 2016 17:17:31 -0700 Reference: Deployment/gosu-main-api-v1 Target CPU utilization: 75% Current CPU utilization: &lt;unset&gt; Min replicas: 3 Max replicas: 20 Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 18m 16m 4 {horizontal-pod-autoscaler } Warning FailedGetMetrics failed to get CPU consumption and request: metrics obtained for 0/12 of pods 18m 16m 4 {horizontal-pod-autoscaler } Warning FailedComputeReplicas failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 0/12 of pods 30m 30s 58 {horizontal-pod-autoscaler } Warning FailedGetMetrics failed to get CPU consumption and request: metrics obtained for 5/12 of pods 30m 30s 58 {horizontal-pod-autoscaler } Warning FailedComputeReplicas failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 5/12 of pods"><pre class="notranslate"><code class="notranslate">Name: gosu-main-api-v1 Namespace: default Labels: &lt;none&gt; Annotations: &lt;none&gt; CreationTimestamp: Sat, 27 Aug 2016 17:17:31 -0700 Reference: Deployment/gosu-main-api-v1 Target CPU utilization: 75% Current CPU utilization: &lt;unset&gt; Min replicas: 3 Max replicas: 20 Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 18m 16m 4 {horizontal-pod-autoscaler } Warning FailedGetMetrics failed to get CPU consumption and request: metrics obtained for 0/12 of pods 18m 16m 4 {horizontal-pod-autoscaler } Warning FailedComputeReplicas failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 0/12 of pods 30m 30s 58 {horizontal-pod-autoscaler } Warning FailedGetMetrics failed to get CPU consumption and request: metrics obtained for 5/12 of pods 30m 30s 58 {horizontal-pod-autoscaler } Warning FailedComputeReplicas failed to get CPU utilization: failed to get CPU consumption and request: metrics obtained for 5/12 of pods </code></pre></div> <p dir="auto">Excerpt from heapster logs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0828 00:47:34.525902 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:47:34.526057 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:47:34.526107 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:47:34.526165 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:47:34.526249 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:47:34.526304 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:47:34.526387 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-qscb9 I0828 00:47:34.526444 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-qscb9 I0828 00:47:34.526493 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:47:34.526548 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:47:34.526591 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:47:34.526671 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:47:34.526754 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-02y6n I0828 00:47:34.526822 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-02y6n I0828 00:48:04.584791 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:48:04.584816 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:48:04.584837 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:48:04.584866 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:48:04.584893 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-02y6n I0828 00:48:04.584961 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-02y6n I0828 00:48:04.584986 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:48:04.585005 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:48:04.585048 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:48:04.585066 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:48:04.585097 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:48:04.585186 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:48:04.585201 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-qscb9 I0828 00:48:04.585206 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-qscb9"><pre class="notranslate"><code class="notranslate">I0828 00:47:34.525902 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:47:34.526057 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:47:34.526107 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:47:34.526165 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:47:34.526249 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:47:34.526304 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:47:34.526387 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-qscb9 I0828 00:47:34.526444 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-qscb9 I0828 00:47:34.526493 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:47:34.526548 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:47:34.526591 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:47:34.526671 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:47:34.526754 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-02y6n I0828 00:47:34.526822 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-02y6n I0828 00:48:04.584791 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:48:04.584816 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-x19pc I0828 00:48:04.584837 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:48:04.584866 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-ipr93 I0828 00:48:04.584893 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-02y6n I0828 00:48:04.584961 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-02y6n I0828 00:48:04.584986 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:48:04.585005 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-wkcbo I0828 00:48:04.585048 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:48:04.585066 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-1499485845-vylz6 I0828 00:48:04.585097 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:48:04.585186 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-3b1q3 I0828 00:48:04.585201 1 handlers.go:242] No metrics for container gosu-main-api in pod default/gosu-main-api-v1-786519656-qscb9 I0828 00:48:04.585206 1 handlers.go:178] No metrics for pod default/gosu-main-api-v1-786519656-qscb9 </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:<br> The deployment is currently set to 5 replicas, so I would expect for the HPA to get the resource consumption for the 5 pods that are scheduled.</p> <p dir="auto"><strong>How to reproduce it</strong>:<br> Cannot reliably bring other deployments into this broken state. Had the same issue with another deployment, but it started to work again without outer influence (maybe after we updated the deployment)</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dfernandez" rel="nofollow">Daniel Fernández</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8928?redirect=false" rel="nofollow">SPR-8928</a></strong> and commented</p> <p dir="auto">org.springframework.context.support.PropertySourcesPlaceholderConfigurer is overriding the "postProcessBeanFactory" method defined in org.springframework.beans.factory.config.PropertyResourceConfigurer in order to register the required chain of PropertySource objects that will be use for resolving properties. This makes sense and is OK.</p> <p dir="auto">But the problem is that the PropertySource object for the local properties (those coming from the "location" attribute and also from the "properties" property) is being created like this:</p> <p dir="auto">PropertySource&lt;?&gt; localPropertySource =<br> new PropertiesPropertySource(LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME, this.mergeProperties());</p> <p dir="auto">...whereas in the original "postProcessBeanFactory" method in PropertyResourceConfigurer these merged properties are post-processed by executing the "convertProperties" method:</p> <p dir="auto">Properties mergedProps = mergeProperties();<br> // Convert the merged properties, if necessary.<br> convertProperties(mergedProps);<br> // Let the subclass process the properties.<br> processProperties(beanFactory, mergedProps);</p> <p dir="auto">This means that the new PropertySourcesPlaceholderConfigurer class never calls "convertProperties", and so disables one of the extension mechanisms of the old pre-3.1 PropertyPlaceholderConfigurer class: overriding the "convertProperty(...)" and "convertPropertyValue(...)" methods.</p> <p dir="auto">I am jasypt's author <a href="http://www.jasypt.org" rel="nofollow">http://www.jasypt.org</a> and I am creating a Spring3.1-compatible EncryptedPropertySourcesPlaceholderConfigurer, but this bug doesn't allow me to transparently apply property decryption at the "convertProperty" method :-(</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</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="398190326" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18574" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18574/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18574">#18574</a> convertPropertyValue (for reading encrypted values) not working (<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="398116279" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13603" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13603/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13603">#13603</a> Allow the use of custom PropertySource annotations in <code class="notranslate">@Configuration</code> classes</li> <li><a href="https://jira.spring.io/browse/SEC-3123" rel="nofollow">SEC-3123</a> Encrypted property value support</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159720" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15294" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15294/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15294">#15294</a> Add encryption support for PropertyPlaceholderConfigurer</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398175791" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17236" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17236/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17236">#17236</a> Backport encrypted property functionality from spring-cloud-config environment work</li> </ul> <p dir="auto">8 votes, 18 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mdeinum" rel="nofollow">Marten Deinum</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4238?redirect=false" rel="nofollow">SPR-4238</a></strong> and commented</p> <p dir="auto">The prop tag doesn´t support a value attribute. It would be nice if it did so we can use the short hand notation. There was some discussion about this in this thread. <a href="http://forum.springframework.org/showthread.php?p=155337#post155337" rel="nofollow">http://forum.springframework.org/showthread.php?p=155337#post155337</a></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="398083766" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8917" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8917/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8917">#8917</a> less verbose xml binding of java.lang.Properties (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Currently, when exporting markdown to html, all html special characters are escaped:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using Markdown a = Markdown.parse(&quot;This is *important* text with &lt;i&gt;html&lt;/i&gt; in it&quot;); # parsed as Markdown.Paragraph(Any[&quot;This is &quot;, Markdown.Italic(Any[&quot;important&quot;]), &quot; text with &lt;i&gt;html&lt;/i&gt; in it&quot;]) # then exporting to html Markdown.html(a) # output below &quot;&lt;p&gt;This is &lt;em&gt;important&lt;/em&gt; text with &amp;lt;i&amp;gt;html&amp;lt;/i&amp;gt; in it&lt;/p&gt;\n&quot;"><pre class="notranslate"><span class="pl-k">using</span> Markdown a <span class="pl-k">=</span> Markdown<span class="pl-k">.</span><span class="pl-c1">parse</span>(<span class="pl-s"><span class="pl-pds">"</span>This is *important* text with &lt;i&gt;html&lt;/i&gt; in it<span class="pl-pds">"</span></span>); <span class="pl-c"><span class="pl-c">#</span> parsed as</span> Markdown<span class="pl-k">.</span><span class="pl-c1">Paragraph</span>(Any[<span class="pl-s"><span class="pl-pds">"</span>This is <span class="pl-pds">"</span></span>, Markdown<span class="pl-k">.</span><span class="pl-c1">Italic</span>(Any[<span class="pl-s"><span class="pl-pds">"</span>important<span class="pl-pds">"</span></span>]), <span class="pl-s"><span class="pl-pds">"</span> text with &lt;i&gt;html&lt;/i&gt; in it<span class="pl-pds">"</span></span>]) <span class="pl-c"><span class="pl-c">#</span> then exporting to html</span> Markdown<span class="pl-k">.</span><span class="pl-c1">html</span>(a) <span class="pl-c"><span class="pl-c">#</span> output below</span> <span class="pl-s"><span class="pl-pds">"</span>&lt;p&gt;This is &lt;em&gt;important&lt;/em&gt; text with &amp;lt;i&amp;gt;html&amp;lt;/i&amp;gt; in it&lt;/p&gt;<span class="pl-cce">\n</span><span class="pl-pds">"</span></span></pre></div> <p dir="auto">and there is no way of getting such an output:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;p&gt;This is &lt;em&gt;important&lt;/em&gt; text with &lt;i&gt;html&lt;/i&gt; in it&lt;/p&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>This is <span class="pl-kos">&lt;</span><span class="pl-ent">em</span><span class="pl-kos">&gt;</span>important<span class="pl-kos">&lt;/</span><span class="pl-ent">em</span><span class="pl-kos">&gt;</span> text with <span class="pl-kos">&lt;</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span>html<span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> in it<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">So, this issue is a feature request.</p> <p dir="auto">It could even be the default behavior for all markdown blocks except code block.</p> <p dir="auto">(similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="534434788" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/34042" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/34042/hovercard" href="https://github.com/JuliaLang/julia/issues/34042">#34042</a>)</p>
<p dir="auto">I noticed <code class="notranslate">Markdown.parse</code> doesn't parse HTML tags properly while writing docs with <code class="notranslate">Documenter.jl</code> (xref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169602768" data-permission-text="Title is private" data-url="https://github.com/JuliaDocs/Documenter.jl/issues/176" data-hovercard-type="issue" data-hovercard-url="/JuliaDocs/Documenter.jl/issues/176/hovercard" href="https://github.com/JuliaDocs/Documenter.jl/issues/176">JuliaDocs/Documenter.jl#176</a>).</p> <p dir="auto">Most Markdown parsers support this feature, so I think <code class="notranslate">Base.Markdown</code> should do as well.</p> <p dir="auto">For example, two consecutive hyphens are recognized as an em dash as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; Markdown.parse(&quot;&lt;!-- comment --&gt;&quot;) &lt;!– comment –&gt; "><pre class="notranslate"><code class="notranslate">julia&gt; Markdown.parse("&lt;!-- comment --&gt;") &lt;!– comment –&gt; </code></pre></div> <p dir="auto">CC: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MichaelHatherly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MichaelHatherly">@MichaelHatherly</a></p> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.5.0-rc1+0 Commit cede539* (2016-08-04 08:48 UTC) Platform Info: System: Darwin (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, haswell) "><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 0.5.0-rc1+0 Commit cede539* (2016-08-04 08:48 UTC) Platform Info: System: Darwin (x86_64-apple-darwin14.5.0) CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, haswell) </code></pre></div>
1
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.2.1-3816ae7c3</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br> at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br> at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br> at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br> at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br> at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br> at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p> <p dir="auto">Component stack: in vl<br> in div<br> in div<br> in div<br> in wo<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Li<br> in $e<br> in dn<br> in Ca<br> in Pc</p>
<p dir="auto">I get three warnings when React DevTools is installed in Chrome. Other people have reported this but I have not seen a good solution. (I dont use an ad blocker)</p> <p dir="auto">DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME<br> DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/react_devtools_backend.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME<br> DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/contentScript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME</p> <p dir="auto">Google Chrome Version 86.0.4240.111 (Official Build) (64-bit)</p> <p dir="auto">React version:<br> "react": "^16.13.1",<br> "react-dom": "^16.13.1",<br> "react-router-dom": "^5.2.0",<br> "react-scripts": "3.4.3"</p> <p dir="auto">Also using Apollo Client</p> <h2 dir="auto">The current behavior</h2> <p dir="auto">The above warnings are generated on every render for every page.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">No warnings</p> <h2 dir="auto">Files</h2> <p dir="auto">----index.js file ----<br> import React from "react";<br> import { render } from "react-dom";<br> import { BrowserRouter } from "react-router-dom";<br> import {<br> ApolloClient,<br> InMemoryCache,<br> createHttpLink,<br> ApolloProvider,<br> } from "@apollo/client";</p> <p dir="auto">// Top level view. Does the setup of the Apollo Provider and renders the App<br> import App from "./App";</p> <p dir="auto">const link = createHttpLink({<br> uri: "<a href="http://localhost:4000" rel="nofollow">http://localhost:4000</a>",<br> headers: { authorization: localStorage.getItem("token") },<br> });<br> const cache = new InMemoryCache();<br> const client = new ApolloClient({<br> link: link,<br> cache: cache,<br> });</p> <p dir="auto">render(<code class="notranslate"> &lt;ApolloProvider client={client}&gt; &lt;BrowserRouter&gt; &lt;div&gt; &lt;App /&gt; &lt;/div&gt; &lt;/BrowserRouter&gt; &lt;/ApolloProvider&gt;,</code><br> document.getElementById("root")<br> );</p>
0
<p dir="auto">Source: <a href="https://discord.com/channels/684898665143206084/684898665151594506/1022408024725405698" rel="nofollow">https://discord.com/channels/684898665143206084/684898665151594506/1022408024725405698</a></p> <p dir="auto">The following code throws an error in Deno versions 1.17 and upwards:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { instance, module } = await WebAssembly.instantiateStreaming( fetch(&quot;https://wpt.live/wasm/incrementer.wasm&quot;), ); const increment = instance.exports.increment as (input: number) =&gt; number; console.log(increment(41));"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> instance<span class="pl-kos">,</span> module <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">WebAssembly</span><span class="pl-kos">.</span><span class="pl-en">instantiateStreaming</span><span class="pl-kos">(</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">"https://wpt.live/wasm/incrementer.wasm"</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">const</span> <span class="pl-s1">increment</span> <span class="pl-c1">=</span> <span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-c1">exports</span><span class="pl-kos">.</span><span class="pl-c1">increment</span> <span class="pl-k">as</span> <span class="pl-kos">(</span><span class="pl-s1">input</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">number</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-en">increment</span><span class="pl-kos">(</span><span class="pl-c1">41</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="deno run -A wasm.ts"><pre class="notranslate"><code class="notranslate">deno run -A wasm.ts </code></pre></div> <p dir="auto">Deno 1.16:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="42"><pre class="notranslate"><code class="notranslate">42 </code></pre></div> <p dir="auto">Deno 1.17:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file at async Object.pull (deno:ext/fetch/26_fetch.js:104:24)"><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file at async Object.pull (deno:ext/fetch/26_fetch.js:104:24) </code></pre></div> <p dir="auto">Deno 1.25:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file at async Object.pull (deno:ext/fetch/26_fetch.js:119:24)"><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file at async Object.pull (deno:ext/fetch/26_fetch.js:119:24) </code></pre></div>
<p dir="auto">If I install a program</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno install catj https://deno.land/std/examples/catjson.ts --allow-read"><pre class="notranslate"><code class="notranslate">deno install catj https://deno.land/std/examples/catjson.ts --allow-read </code></pre></div> <p dir="auto">I want to be able to use flags like <code class="notranslate">--reload</code> or <code class="notranslate">-L=info</code> with the newly installed program:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="catj --reload"><pre class="notranslate"><code class="notranslate">catj --reload </code></pre></div> <p dir="auto">^-- does not work as intended.</p>
0
<p dir="auto">Calling <code class="notranslate">.popover('hide')</code> on an element does nothing in IE8, and works fine in other browsers. Here's a demo: <a href="http://jsfiddle.net/QaHkV/1/" rel="nofollow">http://jsfiddle.net/QaHkV/1/</a></p> <p dir="auto">This also didn't work when I tried it locally with all the shims/hacks suggested for IE8.</p>
<p dir="auto">Using toggle popover hidden and ok. When using hide command, popover is hidden, but button inside popover still trigering mouse over.</p> <p dir="auto"><a href="http://jsfiddle.net/conx/n8FYQ/4/" rel="nofollow">http://jsfiddle.net/conx/n8FYQ/4/</a></p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/superagent@3.5.5</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NicoZelaya/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NicoZelaya">@NicoZelaya</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mxl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mxl">@mxl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paplorinc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paplorinc">@paplorinc</a></li> </ul> </li> </ul> <p dir="auto">I'm using <code class="notranslate">superagent</code> in the browser environment (not Node). Importing <code class="notranslate">superagent</code> loads type definitions <code class="notranslate">@types/superagent</code> which unconditionally imports <code class="notranslate">@types/node</code> which injects global type definitions for Node environment. After that, the TypeScript compiler tells me that <code class="notranslate">setTimeout</code> returns <code class="notranslate">NodeJS.Timer</code> while I expect it to return <code class="notranslate">number</code> because there should be no <code class="notranslate">NodeJS</code> in the browser.</p> <p dir="auto">I'm not using the latest <code class="notranslate">tsc</code> because I'm building a React+TypeScript app via <a href="https://github.com/zhenwenc/create-react-app">https://github.com/zhenwenc/create-react-app</a> <a href="https://www.npmjs.com/package/zc-react-scripts" rel="nofollow">https://www.npmjs.com/package/zc-react-scripts</a> –<br> <code class="notranslate">typescript@2.4.2</code> <a href="https://github.com/zhenwenc/create-react-app/blob/ad3d5ee66a9e7e7b0326ff4e79cc9ce08d76423f/packages/react-scripts/package.json#L65">is bundled</a> with the latest version <code class="notranslate">zc-react-scripts@1.1.1</code> at the time of writing.</p>
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GlenCFL/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GlenCFL">@GlenCFL</a></li> </ul> </li> </ul> <p dir="auto">Since different emitters can have different 'emissions', having a global interface, especially one defining 'catch-all' string index is not helpful <em>at all</em>. Adding <code class="notranslate">Emissions</code> as a generic parameter to <code class="notranslate">Emitter</code> itself would work <em>much</em> better. Example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * Utility class to be used when implementing event-based APIs that allows * for handlers registered via ::on to be invoked with calls to ::emit. */ export class Emitter&lt;Emissions = { [key: string]: any }&gt; implements DisposableLike { /** Construct an emitter. */ constructor(); /** Clear out any existing subscribers. */ clear(): void; /** Unsubscribe all handlers. */ dispose(): boolean; // Event Subscription /** Registers a handler to be invoked whenever the given event is emitted. */ on&lt;T extends keyof Emissions&gt;(eventName: T, handler: (value?: Emissions[T]) =&gt; void): Disposable; /** * Register the given handler function to be invoked the next time an event * with the given name is emitted via ::emit. */ once&lt;T extends keyof Emissions&gt;(eventName: T, handler: (value?: Emissions[T]) =&gt; void): Disposable; /** * Register the given handler function to be invoked before all other * handlers existing at the time of subscription whenever events by the * given name are emitted via ::emit. */ preempt&lt;T extends keyof Emissions&gt;(eventName: T, handler: (value?: Emissions[T]) =&gt; void): Disposable; // Event Emission /** Invoke the handlers registered via ::on for the given event name. */ emit&lt;T extends keyof Emissions&gt;(eventName: T, value?: Emissions[T]): void; }"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * Utility class to be used when implementing event-based APIs that allows</span> <span class="pl-c"> * for handlers registered via ::on to be invoked with calls to ::emit.</span> <span class="pl-c"> */</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Emitter</span><span class="pl-c1">&lt;</span><span class="pl-smi">Emissions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">any</span> <span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-k">implements</span> <span class="pl-smi">DisposableLike</span> <span class="pl-kos">{</span> <span class="pl-c">/** Construct an emitter. */</span> <span class="pl-c1">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/** Clear out any existing subscribers. */</span> <span class="pl-c1">clear</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-c">/** Unsubscribe all handlers. */</span> <span class="pl-c1">dispose</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-c">// Event Subscription</span> <span class="pl-c">/** Registers a handler to be invoked whenever the given event is emitted. */</span> <span class="pl-c1">on</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-k">keyof</span> <span class="pl-smi">Emissions</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">eventName</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">handler</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>?: <span class="pl-smi">Emissions</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">)</span>: <span class="pl-smi">Disposable</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * Register the given handler function to be invoked the next time an event</span> <span class="pl-c"> * with the given name is emitted via ::emit.</span> <span class="pl-c"> */</span> <span class="pl-c1">once</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-k">keyof</span> <span class="pl-smi">Emissions</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">eventName</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">handler</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>?: <span class="pl-smi">Emissions</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">)</span>: <span class="pl-smi">Disposable</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * Register the given handler function to be invoked before all other</span> <span class="pl-c"> * handlers existing at the time of subscription whenever events by the</span> <span class="pl-c"> * given name are emitted via ::emit.</span> <span class="pl-c"> */</span> <span class="pl-c1">preempt</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-k">keyof</span> <span class="pl-smi">Emissions</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">eventName</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">handler</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>?: <span class="pl-smi">Emissions</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">)</span>: <span class="pl-smi">Disposable</span><span class="pl-kos">;</span> <span class="pl-c">// Event Emission</span> <span class="pl-c">/** Invoke the handlers registered via ::on for the given event name. */</span> <span class="pl-c1">emit</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-k">keyof</span> <span class="pl-smi">Emissions</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">eventName</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">value</span>?: <span class="pl-smi">Emissions</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: MacOs</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">This is not the issue, but the update of referenceCount log.</p> <p dir="auto">Originally, i don't know why we have to check the referenceCount before close the connection.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="final class ReferenceCountExchangeClient implements ExchangeClient { @Override public void close(int timeout) { if (referenceCount.decrementAndGet() &lt;= 0) { if (timeout == 0) { client.close(); } else { client.close(timeout); } replaceWithLazyClient(); } } }"><pre class="notranslate"><code class="notranslate">final class ReferenceCountExchangeClient implements ExchangeClient { @Override public void close(int timeout) { if (referenceCount.decrementAndGet() &lt;= 0) { if (timeout == 0) { client.close(); } else { client.close(timeout); } replaceWithLazyClient(); } } } </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.2</li> <li>Operating System version: Mac</li> <li>Java version: 8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <h4 dir="auto">设置属性值</h4> <ul dir="auto"> <li>Provider</li> </ul> <blockquote> <p dir="auto">dubbo.provider.filter=metrics<br> dubbo.provider.metrics.protocol=dubbo<br> dubbo.provider.metrics.port=20880</p> </blockquote> <ul dir="auto"> <li>Consumer</li> </ul> <blockquote> <p dir="auto">dubbo.consumer.filter=metrics<br> dubbo.consumer.metrics.protocol=dubbo<br> dubbo.consumer.metrics.port=20880</p> </blockquote> <p dir="auto">dubbo.provider会映射到<code class="notranslate">ProviderConfig</code>里的metrics,dubbo.consumer会映射到<code class="notranslate">ConsumerConfig</code>里的metrics。但是在<code class="notranslate">AbstractConfig</code>里解析时方法类型只能是<code class="notranslate">Primitive </code>,所以导致里面的值无法放入url 参数列表里。导致dubbo-admin里无法获取到protocol和port</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <blockquote> <p dir="auto">为什么不跟xml<code class="notranslate">&lt;dubbo:metrics</code>一样提供<code class="notranslate">dubbo.metrics</code>,然后在<code class="notranslate">DubboConfigConfiguration</code>映射进去</p> </blockquote> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" @EnableDubboConfigBindings({ @EnableDubboConfigBinding(prefix = &quot;dubbo.application&quot;, type = ApplicationConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.module&quot;, type = ModuleConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.registry&quot;, type = RegistryConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.protocol&quot;, type = ProtocolConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.monitor&quot;, type = MonitorConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.provider&quot;, type = ProviderConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.consumer&quot;, type = ConsumerConfig.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.config-center&quot;, type = ConfigCenterBean.class), @EnableDubboConfigBinding(prefix = &quot;dubbo.metadata-report&quot;, type = MetadataReportConfig.class) })"><pre class="notranslate"> <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBindings</span>({ <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.application"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">ApplicationConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.module"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">ModuleConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.registry"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">RegistryConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.protocol"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">ProtocolConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.monitor"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">MonitorConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.provider"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">ProviderConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.consumer"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">ConsumerConfig</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.config-center"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">ConfigCenterBean</span>.<span class="pl-k">class</span>), <span class="pl-c1">@</span><span class="pl-c1">EnableDubboConfigBinding</span>(<span class="pl-s1">prefix</span> = <span class="pl-s">"dubbo.metadata-report"</span>, <span class="pl-s1">type</span> = <span class="pl-smi">MetadataReportConfig</span>.<span class="pl-k">class</span>) })</pre></div>
0
<ol dir="auto"> <li>Open directory in Atom. Directory is under git.</li> <li>Open file1.coffee in editor tab.</li> <li>In Linux console checkout another git branch where file1.coffee is absent.</li> <li>Now in atom you should see error message</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: linux 3.19.0-12-generic<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: ENOENT: no such file or directory, open '/my/file/path/file1.coffee'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:141 Error: ENOENT: no such file or directory, open '/my/file/path/file1.coffee' at Error (native) "><pre class="notranslate"><code class="notranslate">At events.js:141 Error: ENOENT: no such file or directory, open '/my/file/path/file1.coffee' at Error (native) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;excludeVcsIgnoredPaths&quot;: false, &quot;disabledPackages&quot;: [ &quot;select-scope&quot;, &quot;language-ruby-on-rails&quot;, &quot;git-diff-details&quot; ] }, &quot;editor&quot;: { &quot;fontSize&quot;: 21, &quot;showInvisibles&quot;: true, &quot;showIndentGuide&quot;: true, &quot;preferredLineLength&quot;: 120, &quot;tabLength&quot;: 4, &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"excludeVcsIgnoredPaths"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>select-scope<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>language-ruby-on-rails<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>git-diff-details<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">21</span>, <span class="pl-ent">"showInvisibles"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">120</span>, <span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>, <span class="pl-ent">"invisibles"</span>: {} } }</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 atom-grails, v0.1.0 autocomplete-plus, v2.12.0 editorconfig, v1.0.0 highlight-selected, v0.9.2 language-hjson, v0.2.0 linter, v0.12.1 linter-coffeelint, v0.2.1 linter-htmlhint, v0.0.13 linter-jshint, v0.1.2 word-jumper, v0.2.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>grails, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> editorconfig, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> highlight<span class="pl-k">-</span>selected, v0.<span class="pl-ii">9</span>.<span class="pl-ii">2</span> language<span class="pl-k">-</span>hjson, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> linter<span class="pl-k">-</span>coffeelint, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span> linter<span class="pl-k">-</span>htmlhint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">13</span> linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">2</span> word<span class="pl-k">-</span>jumper, v0.<span class="pl-ii">2</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">Some repro steps that I gathered from the existing issues:</p> <ol dir="auto"> <li>Have a file open in branch <code class="notranslate">something</code> that doesn't exist in branch <code class="notranslate">atom</code></li> <li><code class="notranslate">git checkout atom</code></li> <li>ENOENT <g-emoji class="g-emoji" alias="boom" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4a5.png">💥</g-emoji><br> OR</li> <li>Have a file open in Atom that will be affected by <code class="notranslate">git rebase</code></li> <li><code class="notranslate">git rebase</code></li> <li>ENOENT <g-emoji class="g-emoji" alias="-1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44e.png">👎</g-emoji><br> OR<br> Just simply rename a file outside of Atom that's currently open inside of Atom.</li> </ol>
1
<p dir="auto">body {<br> background-color: #000000;<br> }</p> &lt;/style&gt; I am using the correct code but I am not able to get past this way point. I see others had this issue but I have tried what resolved other users issues with this, with no result. How can I get past this?
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My answer is correct but wrongly flagged as erroneous.<br> 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; body { background-color: #000000; } &lt;/style&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-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">I tried running flutter for the first time from android studio and i got a gradle error. I have connected my phone to my computer and it recognized it alright. I tried to run it again and it gave me the same error message.</p> <p dir="auto">like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib\main.dart on SZ622YHRZW in debug mode... Initializing gradle... Finished with error: Exit code 1 from: C:\Users\Andi\jet_flutter_app\android\gradlew.bat -v: Downloading https://services.gradle.org/distributions/gradle-3.3-all.zip ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Unzipping C:\Users\Andi\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3-all.zip to C:\Users\Andi\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9 Exception in thread &quot;main&quot; java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:219) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:149) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:163) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)"><pre class="notranslate"><code class="notranslate">Launching lib\main.dart on SZ622YHRZW in debug mode... Initializing gradle... Finished with error: Exit code 1 from: C:\Users\Andi\jet_flutter_app\android\gradlew.bat -v: Downloading https://services.gradle.org/distributions/gradle-3.3-all.zip ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Unzipping C:\Users\Andi\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3-all.zip to C:\Users\Andi\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9 Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:219) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:149) at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:163) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) </code></pre></div> <p dir="auto">Please check my command line feedback on the error from the attached txt file.<br> Flutter doctor runs alright.</p>
<p dir="auto">I don't see any in <a href="https://flutter.io/ui-performance/" rel="nofollow">https://flutter.io/ui-performance/</a>, but maybe they're somewhere else?</p> <p dir="auto">I'm attempting to reply to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192111534" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/7053" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/7053/hovercard?comment_id=383525588&amp;comment_type=issue_comment" href="https://github.com/flutter/flutter/issues/7053#issuecomment-383525588">#7053 (comment)</a> and request a trace.</p>
0
<p dir="auto"><strong>Glide Version</strong>: 4.13.2</p> <p dir="auto"><strong>Integration libraries</strong>: None</p> <p dir="auto"><strong>Device/Android Version</strong>: Emulator (Pixel 2 - API 30 - Android 11) and Huawei P30 lite</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br> I'm trying to load images from the web, delivered by an API. Those images sometimes contain EXIF data with rotation information and Glide should automatically rotate those as requested. But for example in the case of the attached image (see below) the rotation isn't correctly applied.</p> <ul dir="auto"> <li>If a URL (as string) or a file is used to request the image via Glide, it doesn't get rotated. <g-emoji class="g-emoji" alias="stop_sign" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f6d1.png">🛑</g-emoji></li> <li>If I use the path of the file the rotation values are honored. <g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></li> </ul> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:<br> I just created a default Android example app, added three image views and loaded the same image in the three mentioned ways.</p> <p dir="auto">In onViewCreated() in FirstFragment</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="val url = &quot;https://url-hosting-some-images.com/your-image.HEIC&quot; val result = runBlocking(Dispatchers.IO) { val file = Glide.with(this@FirstFragment).downloadOnly().load(url).submit() file.get() } firstImage(url) secondImage(result) thirdImage(result.absolutePath)"><pre class="notranslate"><span class="pl-smi">val</span> <span class="pl-s1">url</span> = <span class="pl-s">"https://url-hosting-some-images.com/your-image.HEIC"</span> <span class="pl-smi">val</span> <span class="pl-s1">result</span> = <span class="pl-en">runBlocking</span>(<span class="pl-smi">Dispatchers</span>.<span class="pl-c1">IO</span>) { <span class="pl-smi">val</span> <span class="pl-s1">file</span> = <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span><span class="pl-c1">@</span><span class="pl-s1">FirstFragment</span>).<span class="pl-en">downloadOnly</span>().<span class="pl-en">load</span>(<span class="pl-s1">url</span>).<span class="pl-en">submit</span>() <span class="pl-s1">file</span>.<span class="pl-en">get</span>() } <span class="pl-en">firstImage</span>(<span class="pl-s1">url</span>) <span class="pl-en">secondImage</span>(<span class="pl-s1">result</span>) <span class="pl-en">thirdImage</span>(<span class="pl-s1">result</span>.<span class="pl-s1">absolutePath</span>)</pre></div> <p dir="auto">The actual methods in FirstFragment</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// rotation is missing private fun firstImage(url: String) { Glide .with(this) .load(url) .into(binding.imageFirst); } // rotation is missing private fun secondImage(file: File) { Glide .with(this) .load(file) .into(binding.imageSecond); } // rotation is correctly displayed private fun thirdImage(path: String) { Glide .with(this) .load(path) .into(binding.imageThird); }"><pre class="notranslate"><span class="pl-c">// rotation is missing</span> <span class="pl-k">private</span> <span class="pl-smi">fun</span> <span class="pl-s1">firstImage</span>(<span class="pl-smi">url</span>: <span class="pl-s1">String</span>) { <span class="pl-smi">Glide</span> .<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">load</span>(<span class="pl-s1">url</span>) .<span class="pl-en">into</span>(<span class="pl-s1">binding</span>.<span class="pl-s1">imageFirst</span>); } <span class="pl-c">// rotation is missing</span> <span class="pl-k">private</span> <span class="pl-smi">fun</span> <span class="pl-s1">secondImage</span>(<span class="pl-smi">file</span>: <span class="pl-s1">File</span>) { <span class="pl-smi">Glide</span> .<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">load</span>(<span class="pl-s1">file</span>) .<span class="pl-en">into</span>(<span class="pl-s1">binding</span>.<span class="pl-s1">imageSecond</span>); } <span class="pl-c">// rotation is correctly displayed</span> <span class="pl-k">private</span> <span class="pl-smi">fun</span> <span class="pl-s1">thirdImage</span>(<span class="pl-smi">path</span>: <span class="pl-s1">String</span>) { <span class="pl-smi">Glide</span> .<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">load</span>(<span class="pl-s1">path</span>) .<span class="pl-en">into</span>(<span class="pl-s1">binding</span>.<span class="pl-s1">imageThird</span>); }</pre></div> <p dir="auto"><strong>Layout XML</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:app=&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;.FirstFragment&quot;&gt; &lt;TextView android:id=&quot;@+id/textview_first&quot; android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot;wrap_content&quot; android:text=&quot;@string/hello_first_fragment&quot; app:layout_constraintEnd_toEndOf=&quot;parent&quot; app:layout_constraintStart_toStartOf=&quot;parent&quot; app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt; &lt;ImageView app:layout_constraintEnd_toEndOf=&quot;parent&quot; app:layout_constraintStart_toStartOf=&quot;parent&quot; app:layout_constraintTop_toBottomOf=&quot;@id/textview_first&quot; tools:src=&quot;@drawable/ic_launcher_foreground&quot; android:id=&quot;@+id/image_first&quot; android:contentDescription=&quot;first&quot; android:layout_width=&quot;0dp&quot; android:layout_height=&quot;150dp&quot; /&gt; &lt;ImageView app:layout_constraintEnd_toEndOf=&quot;parent&quot; app:layout_constraintStart_toStartOf=&quot;parent&quot; app:layout_constraintTop_toBottomOf=&quot;@id/image_first&quot; tools:src=&quot;@drawable/ic_launcher_foreground&quot; android:id=&quot;@+id/image_second&quot; android:contentDescription=&quot;second&quot; android:layout_width=&quot;0dp&quot; android:layout_height=&quot;150dp&quot; /&gt; &lt;ImageView app:layout_constraintEnd_toEndOf=&quot;parent&quot; app:layout_constraintStart_toStartOf=&quot;parent&quot; app:layout_constraintTop_toBottomOf=&quot;@id/image_second&quot; tools:src=&quot;@drawable/ic_launcher_foreground&quot; android:id=&quot;@+id/image_third&quot; android:contentDescription=&quot;third&quot; android:layout_width=&quot;0dp&quot; android:layout_height=&quot;150dp&quot; /&gt; &lt;Button android:id=&quot;@+id/button_first&quot; android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot;wrap_content&quot; android:text=&quot;@string/next&quot; app:layout_constraintBottom_toBottomOf=&quot;parent&quot; app:layout_constraintEnd_toEndOf=&quot;parent&quot; app:layout_constraintStart_toStartOf=&quot;parent&quot; app:layout_constraintTop_toBottomOf=&quot;@id/image_third&quot; /&gt; &lt;/androidx.constraintlayout.widget.ConstraintLayout&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">androidx</span>.constraintlayout.widget.ConstraintLayout <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">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>.FirstFragment<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">TextView</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/textview_first<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>wrap_content<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>wrap_content<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">text</span>=<span class="pl-s"><span class="pl-pds">"</span>@string/hello_first_fragment<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintEnd_toEndOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintStart_toStartOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintTop_toTopOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">ImageView</span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintEnd_toEndOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintStart_toStartOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintTop_toBottomOf</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/textview_first<span class="pl-pds">"</span></span> <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/ic_launcher_foreground<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/image_first<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">contentDescription</span>=<span class="pl-s"><span class="pl-pds">"</span>first<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>0dp<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>150dp<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">ImageView</span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintEnd_toEndOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintStart_toStartOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintTop_toBottomOf</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/image_first<span class="pl-pds">"</span></span> <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/ic_launcher_foreground<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/image_second<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">contentDescription</span>=<span class="pl-s"><span class="pl-pds">"</span>second<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>0dp<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>150dp<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">ImageView</span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintEnd_toEndOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintStart_toStartOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintTop_toBottomOf</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/image_second<span class="pl-pds">"</span></span> <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/ic_launcher_foreground<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/image_third<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">contentDescription</span>=<span class="pl-s"><span class="pl-pds">"</span>third<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>0dp<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>150dp<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">Button</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/button_first<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>wrap_content<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>wrap_content<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">text</span>=<span class="pl-s"><span class="pl-pds">"</span>@string/next<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintBottom_toBottomOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintEnd_toEndOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintStart_toStartOf</span>=<span class="pl-s"><span class="pl-pds">"</span>parent<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">layout_constraintTop_toBottomOf</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/image_third<span class="pl-pds">"</span></span> /&gt; &lt;/<span class="pl-ent">androidx</span>.constraintlayout.widget.ConstraintLayout&gt;</pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>: No errors</p> <p dir="auto"><strong>Screenshot</strong>:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7944013/185390106-2eaddc6e-a9c9-4d4c-8089-0bc882ff1573.png"><img src="https://user-images.githubusercontent.com/7944013/185390106-2eaddc6e-a9c9-4d4c-8089-0bc882ff1573.png" alt="Screenshot_20220818_140300" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Example image</strong>:<br> As GitHub doesn't support HEIC attachments I had to zip it.<br> <a href="https://github.com/bumptech/glide/files/9373645/example_image.zip">example_image.zip</a></p>
<p dir="auto">Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface</p> <p dir="auto">W/ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.<br> <a href="http://java.io/" rel="nofollow">java.io</a>.IOException: Invalid byte order: 4646<br> at androidx.exifinterface.media.ExifInterface.readByteOrder(ExifInterface.java:6581)<br> at androidx.exifinterface.media.ExifInterface.parseTiffHeaders(ExifInterface.java:6588)<br> at androidx.exifinterface.media.ExifInterface.getRawAttributes(ExifInterface.java:5617)<br> at androidx.exifinterface.media.ExifInterface.loadAttributes(ExifInterface.java:4583)<br> at androidx.exifinterface.media.ExifInterface.(ExifInterface.java:4032)<br> at androidx.exifinterface.media.ExifInterface.(ExifInterface.java:3983)<br> at com.bumptech.glide.load.resource.bitmap.ExifInterfaceImageHeaderParser.getOrientation(ExifInterfaceImageHeaderParser.java:40)<br> at com.bumptech.glide.load.resource.bitmap.ExifInterfaceImageHeaderParser.getOrientation(ExifInterfaceImageHeaderParser.java:53)<br> at com.bumptech.glide.load.ImageHeaderParserUtils$4.getOrientation(ImageHeaderParserUtils.java:147)<br> at com.bumptech.glide.load.ImageHeaderParserUtils.getOrientationInternal(ImageHeaderParserUtils.java:222)<br> at com.bumptech.glide.load.ImageHeaderParserUtils.getOrientation(ImageHeaderParserUtils.java:142)<br> at com.bumptech.glide.load.resource.bitmap.ImageReader$ByteBufferReader.getImageOrientation(ImageReader.java:166)<br> at com.bumptech.glide.load.resource.bitmap.Downsampler.decodeFromWrappedStreams(Downsampler.java:330)<br> at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:285)<br> at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:187)<br> at com.bumptech.glide.load.resource.bitmap.ByteBufferBitmapDecoder.decode(ByteBufferBitmapDecoder.java:28)<br> at com.bumptech.glide.load.resource.bitmap.ByteBufferBitmapDecoder.decode(ByteBufferBitmapDecoder.java:12)<br> at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:92)<br> at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:70)<br> at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:59)<br> at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:76)<br> at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:57)<br> at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:535)<br> at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:499)<br> at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:485)<br> at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:430)<br> at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:394)<br> at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:100)<br> at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:62)<br> at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:77)<br> at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:311)<br> at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:277)<br> at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)<br> at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:413)<br> at java.lang.Thread.run(Thread.java:764)<br> at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultPriorityThreadFactory$1.run(GlideExecutor.java:372)</p> <p dir="auto">Actually,It is not a bug from Android ExifInterface , but it is a bug of Glide, and happened in Webp image.<br> 1, Why the exception happened ?<br> Before the exception happened, I debug the code and find that the image mime type check result is "unknown".<br> I found that , the ExifInterfaceImageHeaderParser get wrong header data which like this " [70, 70, -86, 8, 0, 0, 87, 69, 66, 80, 86, ......." .<br> Webp file starts with "RIFFxxxxWebpxxxx", must start with "RIFF" four characters , but the start characters begin with "FF", and "RI" is lost.</p> <p dir="auto">2, Why "FF" and not "RIFF"<br> First, I check the cache file, and the header start with "RIFF" , so it is not the problem of image file.<br> Then, check the code of getOrientation function , We know that there are two image header parsers do the work:<br> DefaultImageHeaderParser<br> ExifInterfaceImageHeaderParser<br> Two parsers share one image file input stream object.<br> The first parser DefaultImageHeaderParser call imageReader obj to get getUInt16, and check image number;<br> Because it is webp file, so it is not DefaultImageHeaderParser's work, so return unknown and the next parser continue the work.</p> <p dir="auto">While ExifInterfaceImageHeaderParser is working, but it does not do reset for the shared stream obj.<br> Because, the first parser read one UInt16, 2 bytes, so the second parser read header buffer from position = 2, not 0.<br> So, The begin 2 characters lost.<br> Based on webp header def:<br> <strong>RIFF Header - 32 bits representing the ASCII characters ‘R’ ‘I’ ‘F’ ‘F’<br> File Size - 32 bits (uint32) representing the size of the file in bytes starting at offset 8. The maximum value of this field is 2^32 minus 10 bytes and thus the size of the whole file is at most 4GiB minus 2 bytes.<br> ‘WEBP’ - 32 bits representing the ASCII characters ‘W’ ‘E’ ‘B’ ‘P’</strong></p> <p dir="auto">We know that, webp file type check, the first four characters are the key point. So the mime type check failed.<br> Then, exif info check run into unknown file type, and parser header based on JPEG, so throw the exception like :<br> "W/ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface. "</p> <p dir="auto">Glide provide wrong stream byte data is the root cause. It is not the problem of ExifInterface.<br> Of course, It is based on if you refer ExifInterface version = 1.2.0.<br> Because ExifInterface support webp header parse from 1.2.0, maybe, I found webp parsing code in 1.2.0 and not check earlier version.</p> <p dir="auto">So the suggestion is that adding reset code for input stream before ExifInterfaceImageHeaderParser do any parsing action in new version.</p> <p dir="auto">I did this check with glide 4.13.1 and ExifInterface 1.2.0.</p> <p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aaronKueng/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aaronKueng">@aaronKueng</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="772885726" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/4451" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/4451/hovercard?comment_id=1082539668&amp;comment_type=issue_comment" href="https://github.com/bumptech/glide/issues/4451#issuecomment-1082539668">#4451 (comment)</a></em></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: 10.0.18362.86 Windows Terminal version (if applicable): 0.1.1361.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.86 Windows Terminal version (if applicable): 0.1.1361.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open a PowerShell tab in Windows Terminal. Attempt to use these PSReadLine key bindings (use the Get-PSReadLineKeyHandler command to see a list of all key bindings):</p> <ul dir="auto"> <li>Ctrl+Backspace (BackwardKillWord)</li> <li>Shift+Ctrl+Enter (InsertLineBelow)</li> <li>Ctrl+Space (MenuComplete)</li> <li>Shift+Tab (TabCompletePrevious)</li> <li>Alt+0 (DigitArgument) (and other digits)</li> <li>PageDown (ScrollDisplayDown)</li> <li>Ctrl+PageDown (ScrollDisplayDownLine)</li> <li>PageUp (ScrollDisplayUp)</li> <li>Ctrl+PageUp (ScrollDisplayUpLine)</li> <li>Ctrl+Alt+? (ShowKeyBindings)</li> <li>Alt+? (WhatIsKey)</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Key executes the specified PSReadLine function.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Nothing happens (or the current tab changes in the case of Alt+digit)</p>
<ul dir="auto"> <li>Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18362.86]"><pre class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18362.86] </code></pre></div> <ul dir="auto"> <li>What you're doing and what's happening: (Copy &amp; paste specific commands and their output, or include screen shots)</li> </ul> <p dir="auto">Trying to add an empty line in a multi-line input by pressing <code class="notranslate">Shift</code> + <code class="notranslate">Enter</code> with PSReadline in PowerShell</p> <ul dir="auto"> <li>What's wrong / what should be happening instead:</li> </ul> <p dir="auto"><code class="notranslate">Shift+Enter</code> is treated as <code class="notranslate">Enter</code>, and it tries to run my incomplete command line</p>
1
<p dir="auto">For reasons, I have a file called BUILD in my ios/ directory, which conflicts with Xcode's default build output directory ('build/'), since macOS has case-insensitive file system by default.</p> <p dir="auto">I can get around that by setting SYMROOT in project.pbxproj, but the flutter tools still insist on using 'build/'. It would be nice if the build directory was configurable with a command-line parameter, and the xcode_backend.sh script passed $SYMROOT in there.</p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create an empty (non-directory) file named 'build' in ios/</li> <li>flutter run // &lt;-- doesn't work, fails building iOS project and flutter</li> <li>Change SYMROOT in the Xcode project file</li> <li>flutter run // &lt;-- still doesn't work, but only flutter fails now</li> </ol> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">[✓] Flutter (on Mac OS, channel master)<br> • Flutter at /Users/jakobr/src/flutter<br> • Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/5f44b2d4e540867c5a7bfee8183f7f881bb53f63/hovercard" href="https://github.com/flutter/flutter/commit/5f44b2d4e540867c5a7bfee8183f7f881bb53f63"><tt>5f44b2d</tt></a> (8 hours ago), 2016-08-22 17:14:30<br> • Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/0949efee2470acce4c5a756a704b494c737bd8a3/hovercard" href="https://github.com/flutter/flutter/commit/0949efee2470acce4c5a756a704b494c737bd8a3"><tt>0949efe</tt></a><br> • Tools Dart version 1.19.0-dev.5.0</p> <p dir="auto">[x] Android toolchain - develop for Android devices<br> x Android Studio / Android SDK not found. Download from <a href="https://developer.android.com/sdk/" rel="nofollow">https://developer.android.com/sdk/</a><br> (or visit <a href="https://flutter.io/setup/#android-setup" rel="nofollow">https://flutter.io/setup/#android-setup</a> for detailed instructions).</p> <p dir="auto">[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)<br> • XCode at /Applications/Xcode.app/Contents/Developer<br> • Xcode 7.3.1, Build version 7D1014</p> <p dir="auto">[✓] Atom - a lightweight development environment for Flutter<br> • flutter plugin version 0.2.4<br> • dartlang plugin version 0.6.35</p> <h2 dir="auto">Logs and Crash Reports</h2> <p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p> <h2 dir="auto">command</h2> <p dir="auto">flutter --suppress-analytics build flx --target=lib/main.dart --output-file=example/ios/Flutter/app.flx</p> <h2 dir="auto">exception</h2> <p dir="auto">FileSystemException: Creation failed, path = 'build' (OS Error: File exists, errno = 17)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dart:io _Directory.createSync package:file/src/sync/local/local_directory.dart 13 _LocalDirectory.create package:flutter_tools/src/base/file_system.dart 65 ensureDirectoryExists package:flutter_tools/src/flx.dart 86 build.&lt;async&gt; ===== asynchronous gap =========================== dart:async _Completer.completeError package:flutter_tools/src/flx.dart 114 build.&lt;async&gt; ===== asynchronous gap =========================== dart:async Future.Future.microtask package:flutter_tools/src/flx.dart build package:flutter_tools/src/commands/build_flx.dart 44 BuildFlxCommand.runInProject.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/commands/build.dart 56 BuildSubCommand.runInProject.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/commands/build_flx.dart BuildFlxCommand.runInProject package:flutter_tools/src/runner/flutter_command.dart 186 FlutterCommand._run.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/dart/pub.dart 60 pubGet.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/base/process.dart 77 runCommandAndStreamOutput.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/runner/flutter_command.dart FlutterCommand._run package:flutter_tools/src/runner/flutter_command.dart 116 FlutterCommand.run package:args/command_runner.dart 177 CommandRunner.runCommand.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 130 CommandRunner.runCommand package:flutter_tools/src/runner/flutter_command_runner.dart 177 FlutterCommandRunner.runCommand.&lt;async&gt; ===== asynchronous gap =========================== dart:async Future.Future.microtask package:flutter_tools/src/runner/flutter_command_runner.dart FlutterCommandRunner.runCommand package:args/command_runner.dart 104 CommandRunner.run.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 104 CommandRunner.run package:flutter_tools/src/runner/flutter_command_runner.dart 123 FlutterCommandRunner.run package:flutter_tools/executable.dart 88 main.&lt;async&gt;.&lt;fn&gt;.&lt;async&gt; ===== asynchronous gap =========================== package:stack_trace Chain.capture package:flutter_tools/executable.dart 82 main.&lt;async&gt;"><pre class="notranslate"><code class="notranslate">dart:io _Directory.createSync package:file/src/sync/local/local_directory.dart 13 _LocalDirectory.create package:flutter_tools/src/base/file_system.dart 65 ensureDirectoryExists package:flutter_tools/src/flx.dart 86 build.&lt;async&gt; ===== asynchronous gap =========================== dart:async _Completer.completeError package:flutter_tools/src/flx.dart 114 build.&lt;async&gt; ===== asynchronous gap =========================== dart:async Future.Future.microtask package:flutter_tools/src/flx.dart build package:flutter_tools/src/commands/build_flx.dart 44 BuildFlxCommand.runInProject.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/commands/build.dart 56 BuildSubCommand.runInProject.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/commands/build_flx.dart BuildFlxCommand.runInProject package:flutter_tools/src/runner/flutter_command.dart 186 FlutterCommand._run.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/dart/pub.dart 60 pubGet.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/base/process.dart 77 runCommandAndStreamOutput.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/runner/flutter_command.dart FlutterCommand._run package:flutter_tools/src/runner/flutter_command.dart 116 FlutterCommand.run package:args/command_runner.dart 177 CommandRunner.runCommand.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 130 CommandRunner.runCommand package:flutter_tools/src/runner/flutter_command_runner.dart 177 FlutterCommandRunner.runCommand.&lt;async&gt; ===== asynchronous gap =========================== dart:async Future.Future.microtask package:flutter_tools/src/runner/flutter_command_runner.dart FlutterCommandRunner.runCommand package:args/command_runner.dart 104 CommandRunner.run.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 104 CommandRunner.run package:flutter_tools/src/runner/flutter_command_runner.dart 123 FlutterCommandRunner.run package:flutter_tools/executable.dart 88 main.&lt;async&gt;.&lt;fn&gt;.&lt;async&gt; ===== asynchronous gap =========================== package:stack_trace Chain.capture package:flutter_tools/executable.dart 82 main.&lt;async&gt; </code></pre></div> <h2 dir="auto">flutter doctor</h2> <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">These two files have duplicated code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="packages/flutter/test/rendering/rendering_tester.dart packages/flutter_test/lib/src/widget_tester.dart"><pre class="notranslate"><code class="notranslate">packages/flutter/test/rendering/rendering_tester.dart packages/flutter_test/lib/src/widget_tester.dart </code></pre></div> <p dir="auto">We should consolidate to simplify maintenance.</p>
0
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Bar&lt;T&gt; { fn dummy(&amp;self); } trait Car&lt;T&gt; { fn dummy(&amp;self); } trait Foo { type A; type B: Bar&lt;Self::A&gt;; type C: Car&lt;Self::A&gt;; fn get_b(&amp;self) -&gt; &amp;Self::B; } fn test_bar&lt;A, B: Bar&lt;A&gt;&gt;(_: &amp;B) {} fn test&lt;A, F: Foo&lt;A=A&gt;&gt;(f: &amp;F) { test_bar(f.get_b()); }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">dummy</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">Car</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">dummy</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">A</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">B</span><span class="pl-kos">:</span> <span class="pl-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">C</span><span class="pl-kos">:</span> <span class="pl-smi">Car</span><span class="pl-kos">&lt;</span><span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">get_b</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-c1">&amp;</span><span class="pl-smi">Self</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-k">fn</span> <span class="pl-en">test_bar</span><span class="pl-kos">&lt;</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-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span>_<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">B</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">test</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span>=<span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">test_bar</span><span class="pl-kos">(</span>f<span class="pl-kos">.</span><span class="pl-en">get_b</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">Gives me:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:15:16: 15:23 error: the trait `Bar&lt;A&gt;` is not implemented for the type `&lt;F as Foo&gt;::B` [E0277] &lt;anon&gt;:15 test_bar(f.get_b()); ^~~~~~~ &lt;anon&gt;:15:16: 15:23 error: the trait `Car&lt;A&gt;` is not implemented for the type `&lt;F as Foo&gt;::C` [E0277] &lt;anon&gt;:15 test_bar(f.get_b()); ^~~~~~~ error: aborting due to 2 previous errors playpen: application terminated with error code 101"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:15:16: 15:23 error: the trait `Bar&lt;A&gt;` is not implemented for the type `&lt;F as Foo&gt;::B` [E0277] &lt;anon&gt;:15 test_bar(f.get_b()); ^~~~~~~ &lt;anon&gt;:15:16: 15:23 error: the trait `Car&lt;A&gt;` is not implemented for the type `&lt;F as Foo&gt;::C` [E0277] &lt;anon&gt;:15 test_bar(f.get_b()); ^~~~~~~ error: aborting due to 2 previous errors playpen: application terminated with error code 101 </code></pre></div> <p dir="auto">There is a workaround:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn test&lt;A, B: Bar&lt;A&gt;, C: Car&lt;A&gt;, F: Foo&lt;A=A, B=B, C=C&gt;&gt;(f: &amp;F) { test_bar(f.get_b()); }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">test</span><span class="pl-kos">&lt;</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-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">C</span><span class="pl-kos">:</span> <span class="pl-smi">Car</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span>=<span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span>=<span class="pl-smi">B</span><span class="pl-kos">,</span> <span class="pl-smi">C</span>=<span class="pl-smi">C</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">test_bar</span><span class="pl-kos">(</span>f<span class="pl-kos">.</span><span class="pl-en">get_b</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">But it's ugly and should not be necessary.</p> <p dir="auto">We hit this problem a lot with <a href="https://github.com/gfx-rs/gfx-rs/blob/68298c260b8d420c9c1cfc8657c87462a84476a6/src/device/mod.rs#L233">gfx::Device</a>, and I'd like to see cleaner use of it without explicit <code class="notranslate">CommandBuffer</code> bounds that we use as a <a href="https://github.com/PistonDevelopers/gfx-debug-draw/blob/58e6d6206a0632492723566ce018ce5a85536c35/src/text_renderer.rs#L246">workaround</a>.</p>
<p dir="auto">I've been running into a linker error <code class="notranslate">undefined reference to 'panicking::panic::h98aad983367da335F7E'</code> while trying to build with <code class="notranslate">#![no_std]</code>. While trying to debug, I ended up with some code that looked like this:</p> <p dir="auto"><a href="https://gist.github.com/anonymous/88c01ee6ee33e4bad656">https://gist.github.com/anonymous/88c01ee6ee33e4bad656</a></p> <p dir="auto">When you try to compile, it fails saying that "panic" is a duplicate definition. This makes sense because it's defined in <code class="notranslate">libcore</code>, but the error explanation suggests that this <em>is</em> possible, and the correct way to to do it is to use <code class="notranslate">#![no_std]</code>, which I'm already doing.</p> <p dir="auto">Seems like either a problem with the library or with the error explanation?</p>
0
<p dir="auto">I was looking at the ThreeJS materials. There are four materials that are nearly the same thing. Basic, Lambert, Phong and NormalMap.</p> <p dir="auto">NormalMap seems to have all the features of Lambert and Phong and even has the ability to turn off things like Specular (to create a Lambert material.)</p> <p dir="auto">I think that Basic is a material where color is set into emissive and it isn't affected by lights.</p> <p dir="auto">Thus maybe four different materials could be combined into one.</p> <p dir="auto">I am wondering if it is worth keeping all of these materials around on the shader side of things.</p> <p dir="auto">I think that with proper use of DEFINES (as it is already done) we can have for the most part a single vertex / fragment shader pair for all standard materials. The variations can be completely controlled via the DEFINES rather than constructing new shaders via including snippets. I think that with proper use of DEFINES in the more complex shader you can still get the speed you would get from a simple Lambert shaders.</p> <p dir="auto">One full shader is a lot easier to maintain than three (or four) very similar shaders. (I also struggle trying to follow the code because of the way the snippets are combined -- I wonder if there is an alternative design possible here that is easier to grok.)</p> <p dir="auto">Even if we combined things, we could still keep the existing material classes around for creating specialized materials for those that do not want to deal with all the options explicitly. Or one can create a factory class for creating common sub-types of StandardMaterials. But underneath these would all refer to the same shader, they would just provide simplified parameters to users.</p> <p dir="auto">BTW I am open to other design suggestions regarding the shaders. I do not have that much experience with dynamic shader generation designs.</p> <p dir="auto">(I push this in part because the more we use a single shader for everything the more can group together objects into batches... Now there are some additional complications, specifically one needs to be able to control the variations without defines to do full batches, but that can come later as an option I think.)</p>
<p dir="auto"><strong>Note:</strong> I don't want to bury the lede for this request, so I moved a brief summary to the top of the issue. Please refer to the second and third headings for a more detailed background and rationale!</p> <h5 dir="auto">Proposal</h5> <p dir="auto">When loading models with <code class="notranslate">GLTFLoader</code>, it would be nice if we could retain associations between glTF scene graph elements and the Three.js objects that correspond to them. I briefly discussed this problem with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/donmccurdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/donmccurdy">@donmccurdy</a> and he suggested that one of the following approaches might be acceptable:</p> <ol dir="auto"> <li>Decorate Three.js objects via <code class="notranslate">userData</code> e.g., <code class="notranslate">material.userData.gltfMeta.index = 3</code></li> <li>Expose a lookup table somewhere e.g., <code class="notranslate">parser.getDefinition( material: THREE.Material ): GLTF.Material</code></li> </ol> <p dir="auto">What do others think about this problem? Would you be willing to consider a change that makes either of the suggested enhancements?</p> <h5 dir="auto">Background</h5> <p dir="auto">Three.js' <code class="notranslate">GLTFLoader</code> currently produces an artifact that contains a Three.js scene graph as well as a <code class="notranslate">GLTFParser</code> instance that holds the original, deserialized glTF.</p> <p dir="auto">The <code class="notranslate">GLTFParser</code> holds associations between the elements in the original glTF and the Three.js scene graph. These associations are expressed both by <code class="notranslate">GLTFParser.prototype.getDependencies</code> and the <code class="notranslate">cache</code> object on the <code class="notranslate">GLTFParser</code> instance.</p> <p dir="auto">In some cases, the relationship between the original glTF element and the associated Three.js objects is obscured and cannot be trivially re-established. For example, materials associated with a skinned mesh are cloned, and the resulting clones are cached against a key that cannot be reconstructed easily:</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/mrdoob/three.js/blob/648c4bbd7d8dd354680d720578da64a77548eecf/examples/jsm/loaders/GLTFLoader.js#L2118-L2127">three.js/examples/jsm/loaders/GLTFLoader.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 2118 to 2127 in <a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/648c4bbd7d8dd354680d720578da64a77548eecf">648c4bb</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="L2118" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2118"></td> <td id="LC2118" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">cachedMaterial</span> <span class="pl-c1">=</span> <span class="pl-s1">material</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2119" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2119"></td> <td id="LC2119" 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="L2120" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2120"></td> <td id="LC2120" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useSkinning</span> <span class="pl-kos">)</span> <span class="pl-s1">cachedMaterial</span><span class="pl-kos">.</span><span class="pl-c1">skinning</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2121" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2121"></td> <td id="LC2121" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useVertexTangents</span> <span class="pl-kos">)</span> <span class="pl-s1">cachedMaterial</span><span class="pl-kos">.</span><span class="pl-c1">vertexTangents</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2122" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2122"></td> <td id="LC2122" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useVertexColors</span> <span class="pl-kos">)</span> <span class="pl-s1">cachedMaterial</span><span class="pl-kos">.</span><span class="pl-c1">vertexColors</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2123" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2123"></td> <td id="LC2123" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useFlatShading</span> <span class="pl-kos">)</span> <span class="pl-s1">cachedMaterial</span><span class="pl-kos">.</span><span class="pl-c1">flatShading</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2124" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2124"></td> <td id="LC2124" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useMorphTargets</span> <span class="pl-kos">)</span> <span class="pl-s1">cachedMaterial</span><span class="pl-kos">.</span><span class="pl-c1">morphTargets</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2125" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2125"></td> <td id="LC2125" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useMorphNormals</span> <span class="pl-kos">)</span> <span class="pl-s1">cachedMaterial</span><span class="pl-kos">.</span><span class="pl-c1">morphNormals</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L2126" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2126"></td> <td id="LC2126" 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="L2127" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2127"></td> <td id="LC2127" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">cache</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">cacheKey</span><span class="pl-kos">,</span> <span class="pl-s1">cachedMaterial</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> </tbody></table> </div> </div> <p></p> <h5 dir="auto">Description of the problem</h5> <p dir="auto">Consider a model editor that allows a user to:</p> <ol dir="auto"> <li>Load a glTF with any shape</li> <li>Interactively change the value of any field of any element of the glTF</li> <li>See the result of the change rendered in real time</li> <li>Export a new glTF</li> </ol> <p dir="auto">In an ideal world, the editor should faithfully re-export the model with its original hierarchy and shape. The only meaningful change in the exported file should be the one made interactively by the user.</p> <p dir="auto">In the pursuit of this goal, it is very useful (and probably required) that an association between the source glTF scene graph and the Three.js scene graph be made, so that for any change we make to a glTF element, we can reflect that change in the rendered Three.js scene in real-time without completely re-loading the glTF.</p> <p dir="auto">Some of the information required to correctly correlate the glTF scene graph with the Three.js scene graph is lost or obscured, and this makes the above described editor scenario very difficult (perhaps impossible) to achieve.</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=""> r115</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>
0
<p dir="auto">Hello,</p> <p dir="auto">I experiencing similar issue as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174331157" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/7049" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/7049/hovercard" href="https://github.com/electron/electron/issues/7049">#7049</a> .</p> <p dir="auto">I raised this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190393990" data-permission-text="Title is private" data-url="https://github.com/segmentio/nightmare/issues/894" data-hovercard-type="issue" data-hovercard-url="/segmentio/nightmare/issues/894/hovercard" href="https://github.com/segmentio/nightmare/issues/894">segmentio/nightmare#894</a> as well. But I think it has nothing to do with nightmare, since after installing 32 bit version of electron it seems that this issue has disappeared. It's not an emergency for me or something, since I have no problem using 32bit version, just though you guys might want to know about it.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190393990" data-permission-text="Title is private" data-url="https://github.com/segmentio/nightmare/issues/894" data-hovercard-type="issue" data-hovercard-url="/segmentio/nightmare/issues/894/hovercard" href="https://github.com/segmentio/nightmare/issues/894">segmentio/nightmare#894</a> has more description, don't want to duplicate it. If you need more information or something, let me know. Also I might mention that I didn't had this issue on debian 8, it's just after I installed linux mint 18, so it might be something with linux kernel maybe, since mint uses newest version?</p> <p dir="auto">Cheers</p>
<p dir="auto">Recently, our company are using electron to build a application on the windows.</p> <p dir="auto">But during the testing, we found that every time the application was launched, it will launch not 1 windows process but 2 or 3. After the application was closed, only 1 of those processes existed. Left another 1 or 2 zombie processes still "running".</p> <p dir="auto">Is this normal ?</p> <p dir="auto">The application was build with <a href="https://github.com/maxogden/electron-packager">https://github.com/maxogden/electron-packager</a></p> <p dir="auto">Tested electron versions: 0.26.1, 0.27.0, 0.27.0<br> Tested platfrom: windows 7 64bit, windows 8 32bit</p>
0
<p dir="auto">When project does import properties from separate MSBuild file via <code class="notranslate">&lt;Import Project="build.props" /&gt;</code>, The MSBuild is using defined properties, but on file save of TS file it is being ignored.<br> It worked with with VS13/VS15RC and TS 1.5 beta, but after release it is broken.</p> <p dir="auto">I can provide ZIP file with example solution, but I cannot add it to github issue.</p>
<p dir="auto">As reported by @licinioamendes in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59102033" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2152" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2152/hovercard?comment_id=126757495&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/2152#issuecomment-126757495">#2152 (comment)</a>:</p> <blockquote> <p dir="auto">Would be nice allow <a href="https://msdn.microsoft.com/en-us/library/c02as0cs.aspx" rel="nofollow">VS macros for build commands</a>.</p> <p dir="auto">The result would be something like <code class="notranslate">$(ProjectDir)outputDirectoryPath</code> on textbox.</p> </blockquote> <p dir="auto">Also note that this is working in VS2013 but not in VS2015.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4975?redirect=false" rel="nofollow">SPR-4975</a></strong> and commented</p> <p dir="auto">Today the <code class="notranslate">@MVC</code> programming model requires manual instantiation and invocation of Validator classes:</p> <p dir="auto">public String onSubmit(<code class="notranslate">@ModelAttribute</code> Customer customer, BindingResult result) {<br> new CustomerValidator().validate(customer, result);<br> if(result.hasErrors()) {<br> return "editAccount";<br> }<br> return "...";<br> }</p> <p dir="auto">It would be preferable to have validation be an integrated part of the <code class="notranslate">@MVC</code> lifecycle.</p> <p dir="auto">For instance, Validator instances could be annotated as <code class="notranslate">@Component</code> and be subject to component scanning. At any rate, whether declared via bean definitions or component scanned, registered Validator instances should be iterated through, and any returning true from Validator#supports() should be used to validate candidate objects.</p> <p dir="auto">Additionally, I believe the interface-based approach is preferable here, vs a <code class="notranslate">@Validator</code> approach, because the strong contract of supports()-&gt;validate() is a useful and expressive one. It would be sufficient to simply allow Validator instances to be component scanned. We just need to add iterating through and invoking registered validators to the lifecycle.</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="398048646" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/4803" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/4803/hovercard" href="https://github.com/spring-projects/spring-framework/issues/4803">#4803</a> Support for declarative validation (Hibernate Validator, anticipating JSR 303) (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rwinch" rel="nofollow">Rob Winch</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7128?redirect=false" rel="nofollow">SPR-7128</a></strong> and commented</p> <p dir="auto">Create a HandlerExceptionResolver that handles BindExceptions so that boilerplate code can be removed from controllers using <code class="notranslate">@Valid</code>. See the Spring forum reference for details.</p> <p dir="auto">PS: I would be more than happy to contribute this</p> <hr> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=87408" rel="nofollow">http://forum.springsource.org/showthread.php?t=87408</a></p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/16748/SPR-7128.patch" rel="nofollow">SPR-7128.patch</a> (<em>28.86 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="398107366" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12196" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12196/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12196">#12196</a> Allow standard form "retry on error" logic to be handled by framework code instead of duplicated across <code class="notranslate">@Controller</code> code</li> </ul>
0
<p dir="auto">First thought was extending <code class="notranslate">MarkdownWidget</code> and clipping the received children, but if I'm not mistaking longer text sections without an explicit line break will be packed into a single widget.</p> <p dir="auto">Any thoughts?</p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Set FontWeight.bold to Text's style. Emoji are not displayed.</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="void main() { runApp(new MaterialApp( home: new Scaffold( appBar: new AppBar( title: const Text('Emoji'), ), body: new Container( padding: const EdgeInsets.all(20.0), child: new Column( children: &lt;Widget&gt;[ new Text('normal 😀 💪 emoji'), new Text('bold 😀 💪 emoji', style: const TextStyle(fontWeight: FontWeight.bold)), ], ), ), ), )); }"><pre class="notranslate"><span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>( home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( appBar<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AppBar</span>( title<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Emoji'</span>), ), body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">all</span>(<span class="pl-c1">20.0</span>), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>( children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'normal 😀 💪 emoji'</span>), <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'bold 😀 💪 emoji'</span>, style<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">TextStyle</span>(fontWeight<span class="pl-k">:</span> <span class="pl-c1">FontWeight</span>.bold)), ], ), ), ), )); }</pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.12.6 16G29, locale ja-JP, channel master) • Flutter at /Applications/flutter • Framework revision 79fbf8bb03 (4 hours ago), 2017-10-18 20:55:00 -0700 • Engine revision 7c4142808c • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.1) • Android SDK at /Users/najeira/Library/Android/sdk • Platform android-26, build-tools 26.0.1 • ANDROID_HOME = /Users/najeira/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.0, Build version 9A235 • ios-deploy 1.9.2 • CocoaPods version 1.2.1 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Ultimate Edition (version 2017.2.1) • Flutter plugin version 16.0 • Dart plugin version 172.3544.34"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.12.6 16G29, locale ja-JP, channel master) • Flutter at /Applications/flutter • Framework revision 79fbf8bb03 (4 hours ago), 2017-10-18 20:55:00 -0700 • Engine revision 7c4142808c • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.1) • Android SDK at /Users/najeira/Library/Android/sdk • Platform android-26, build-tools 26.0.1 • ANDROID_HOME = /Users/najeira/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.0, Build version 9A235 • ios-deploy 1.9.2 • CocoaPods version 1.2.1 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Ultimate Edition (version 2017.2.1) • Flutter plugin version 16.0 • Dart plugin version 172.3544.34 </code></pre></div>
0
<p dir="auto">It would be extremely handy if the fancy zones showed their dimensions for the OCD amongst us. This could be implemented by vertical &amp; horizontal arrows within each zone, showing the size.</p>
<p dir="auto"><a href="https://www.reddit.com/r/Windows10/comments/ez4xpz/lets_fix_this_monitor_positioning_issue_after/" rel="nofollow">https://www.reddit.com/r/Windows10/comments/ez4xpz/lets_fix_this_monitor_positioning_issue_after/</a></p> <p dir="auto">Reddit's user vanarebane had a great idea here. When the mouse crosses a monitor boundary, we extrapolate where the mouse should be mapped to on the next monitor as if they had a 1:1 side by side map.</p> <p dir="auto">image is from the Reddit link<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1462282/73961231-0e0f6780-48c1-11ea-9ee7-3c68e8db870e.png"><img src="https://user-images.githubusercontent.com/1462282/73961231-0e0f6780-48c1-11ea-9ee7-3c68e8db870e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">As someone with exactly the setup the image shows, this would be very nice to have.</p>
0
<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="function whatever (idA, idB) { [idA, idB] = [idB, idA]; return true; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">whatever</span> <span class="pl-kos">(</span><span class="pl-s1">idA</span><span class="pl-kos">,</span> <span class="pl-s1">idB</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">idA</span><span class="pl-kos">,</span> <span class="pl-s1">idB</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">idB</span><span class="pl-kos">,</span> <span class="pl-s1">idA</span><span class="pl-kos">]</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"><strong>Expected behavior:</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function whatever(idA, idB) { var _a; _a = [idB, idA], idA = _a[0], idB = _a[1]; return true; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">whatever</span><span class="pl-kos">(</span><span class="pl-s1">idA</span><span class="pl-kos">,</span> <span class="pl-s1">idB</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_a</span><span class="pl-kos">;</span> <span class="pl-s1">_a</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">idB</span><span class="pl-kos">,</span> <span class="pl-s1">idA</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">idA</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">idB</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</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-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Actual behavior:</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function whatever(idA, idB) { _a = [idB, idA], idA = _a[0], idB = _a[1]; return true; var _a; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">whatever</span><span class="pl-kos">(</span><span class="pl-s1">idA</span><span class="pl-kos">,</span> <span class="pl-s1">idB</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">_a</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">idB</span><span class="pl-kos">,</span> <span class="pl-s1">idA</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">idA</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">idB</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</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-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Thanks to variable hoisting, there is no functional problem here. However, I consider the compiled code unintuitive.</p> <p dir="auto">In addition, using Istanbul for code coverage highlights the <code class="notranslate">var _a;</code> declaration as not covered.</p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/admmasters/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/admmasters">@admmasters</a> on April 5, 2016 13:34</em></p> <ul dir="auto"> <li>VSCode Version: Version 0.10.14-insider (0.10.14-insider)</li> <li>OS Version: OSX 10.11.4</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Cmd+Click on a Component in JSX (also JS).</li> <li>VSCode jumps to the import and not the file itself.</li> </ol> <p dir="auto">Expected:<br> VSCode should just jump to the file referenced in the import as its smart enough to know the specific import.</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="145990871" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4964" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4964/hovercard" href="https://github.com/microsoft/vscode/issues/4964">microsoft/vscode#4964</a></em></p>
0
<p dir="auto">If you scale the errors fed into curve_fit, the error returned does not change. This is incorrect behavior. The error (variance and covariance) for a final fit parameter should increase given an increased uncertainty in the actual measured data.</p> <p dir="auto">I created a gaussian curve fitting routine. I then show one version functioning as expected, and another version with error increased by a factor of 1e10. The increase in 1e10 should be reflected in the variance/covariance for all fitted parameters. It remains constant:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import collections as col import scipy as sp import scipy.optimize as spopt plt.close('all') def _gaussvar(x,amp,mu,variance,bg=0): return amp*np.exp(-(x-mu)**2/(2*variance))+bg def iter(factor): # Generate random numbers with gaussian # distribution, mu=0, sigma = 3 x=np.random.randn(10000)*3 # Bin the counts bins = 50 h,edge = np.histogram(x,bins=bins) # Find the midpoints of the bins mids = edge + (edge[1]-edge[0])/2 mids = mids[:-1] # Expected error in counts is sqrt(counts) sigma = np.sqrt(h)*1 # Error of zero counts isn't zero, but less than one. # Use 0.5 as a guess. sigma[sigma==0] = 0.5 # Factor scales error, which should cause # the pcov matrix to change sigma = sigma*factor # Fit the histogram to a gaussian # popt,pcov,red_chisq = mt.gaussfit(mids,h,sigma_y=sigma,plot=True,variance_bool=True) # Find initial guesses y=h x=mids amp = max(y) mu = sum(x*y)/sum(y) variance = sum(x**2 * y)/sum(y) bg = 0 p0 = np.array((amp,mu,variance,bg)) # Do actual curve fit func = _gaussvar popt,pcov = spopt.curve_fit(func,x,y,sigma=sigma,p0=p0) output = col.namedtuple('iterout',['popt','pcov']) out = output(popt,pcov) return out num_samples = 1000 variances_regular = np.ones(num_samples) variances_large = np.ones(num_samples) means_regular = np.ones(num_samples) means_large = np.ones(num_samples) for i in np.linspace(1,num_samples,num_samples)-1: out = iter(1) means_regular[i] = out.popt[2] variances_regular[i] = out.pcov[2,2] out = iter(1e10) means_large[i] = out.popt[2] variances_large[i] = out.pcov[2,2] plt.hist(variances_regular,bins=20) plt.hist(variances_large,bins=20) plt.show()"><pre class="notranslate"><code class="notranslate">#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import collections as col import scipy as sp import scipy.optimize as spopt plt.close('all') def _gaussvar(x,amp,mu,variance,bg=0): return amp*np.exp(-(x-mu)**2/(2*variance))+bg def iter(factor): # Generate random numbers with gaussian # distribution, mu=0, sigma = 3 x=np.random.randn(10000)*3 # Bin the counts bins = 50 h,edge = np.histogram(x,bins=bins) # Find the midpoints of the bins mids = edge + (edge[1]-edge[0])/2 mids = mids[:-1] # Expected error in counts is sqrt(counts) sigma = np.sqrt(h)*1 # Error of zero counts isn't zero, but less than one. # Use 0.5 as a guess. sigma[sigma==0] = 0.5 # Factor scales error, which should cause # the pcov matrix to change sigma = sigma*factor # Fit the histogram to a gaussian # popt,pcov,red_chisq = mt.gaussfit(mids,h,sigma_y=sigma,plot=True,variance_bool=True) # Find initial guesses y=h x=mids amp = max(y) mu = sum(x*y)/sum(y) variance = sum(x**2 * y)/sum(y) bg = 0 p0 = np.array((amp,mu,variance,bg)) # Do actual curve fit func = _gaussvar popt,pcov = spopt.curve_fit(func,x,y,sigma=sigma,p0=p0) output = col.namedtuple('iterout',['popt','pcov']) out = output(popt,pcov) return out num_samples = 1000 variances_regular = np.ones(num_samples) variances_large = np.ones(num_samples) means_regular = np.ones(num_samples) means_large = np.ones(num_samples) for i in np.linspace(1,num_samples,num_samples)-1: out = iter(1) means_regular[i] = out.popt[2] variances_regular[i] = out.pcov[2,2] out = iter(1e10) means_large[i] = out.popt[2] variances_large[i] = out.pcov[2,2] plt.hist(variances_regular,bins=20) plt.hist(variances_large,bins=20) plt.show() </code></pre></div> <p dir="auto">See also:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/20fa166fa0165bcdeabab6c7e4005e9e37ae5c3737cfc2a7251ef7b958ff493e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3435383837312f313334363734342f36626233336166652d333661352d313165332d383639312d3261666166376531353332362e6a7067"><img src="https://camo.githubusercontent.com/20fa166fa0165bcdeabab6c7e4005e9e37ae5c3737cfc2a7251ef7b958ff493e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3435383837312f313334363734342f36626233336166652d333661352d313165332d383639312d3261666166376531353332362e6a7067" alt="figure_1" data-canonical-src="https://f.cloud.github.com/assets/458871/1346744/6bb33afe-36a5-11e3-8691-2afaf7e15326.jpg" style="max-width: 100%;"></a></p> <p dir="auto"><a href="https://github.com/joelfrederico/GaussFitDemo">https://github.com/joelfrederico/GaussFitDemo</a></p>
<p dir="auto">In the context of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="937950752" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/14360" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/14360/hovercard" href="https://github.com/scipy/scipy/issues/14360">#14360</a> &amp; <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1053213136" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/15040" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/15040/hovercard" href="https://github.com/scipy/scipy/pull/15040">#15040</a>, we cleaned up a lot of our module API and deprecated those that are supposed to be private, for removal that's scheduled for SciPy 2.0</p> <p dir="auto">This was primarily (only?) done for the first-level modules though, not further down the tree. The added test <a href="https://github.com/scipy/scipy/blob/main/scipy/_lib/tests/test_public_api.py">infrastructure</a> contains:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# The PRIVATE_BUT_PRESENT_MODULES list contains modules that look public (lack # of underscores) but should not be used. For many of those modules the # current status is fine. For others it may make sense to work on making them # private, to clean up our public API and avoid confusion. # These private modules support will be removed in SciPy v2.0.0 PRIVATE_BUT_PRESENT_MODULES = [ ..."><pre class="notranslate"><span class="pl-c"># The PRIVATE_BUT_PRESENT_MODULES list contains modules that look public (lack</span> <span class="pl-c"># of underscores) but should not be used. For many of those modules the</span> <span class="pl-c"># current status is fine. For others it may make sense to work on making them</span> <span class="pl-c"># private, to clean up our public API and avoid confusion.</span> <span class="pl-c"># These private modules support will be removed in SciPy v2.0.0</span> <span class="pl-v">PRIVATE_BUT_PRESENT_MODULES</span> <span class="pl-c1">=</span> [ ...</pre></div> <p dir="auto">IMO, without tracking what needs to be done (deprecate and make private, or keep public) and then doing it, we won't be in a position to actually execute this for SciPy 2.0, hence I'm opening this issue. Ideally we decide per module what needs to be done, and then do it, so we can actually remove what we'd like to remove when the time comes.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.constants.codata</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.constants.constants</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.fftpack.basic</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.fftpack.convolve</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.fftpack.helper</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.fftpack.pseudo_diffs</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.fftpack.realtransforms</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.integrate.odepack</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.integrate.quadpack</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.integrate.dop</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.integrate.lsoda</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.integrate.vode</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.dfitpack</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.fitpack</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.fitpack2</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.interpnd</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.interpolate</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.ndgriddata</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.polyint</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.interpolate.rbf</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.arff.arffread</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.harwell_boeing</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.idl</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.mmio</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.netcdf</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.byteordercodes</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.mio</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.mio4</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.mio5</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.mio5_params</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.mio5_utils</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.mio_utils</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.miobase</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.io.matlab.streams</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.basic</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.decomp</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.decomp_cholesky</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.decomp_lu</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.decomp_qr</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.decomp_schur</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.decomp_svd</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.flinalg</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.matfuncs</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.misc</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.linalg.special_matrices</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.misc.common</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.misc.doccer</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.ndimage.filters</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.ndimage.fourier</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.ndimage.interpolation</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.ndimage.measurements</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.ndimage.morphology</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.odr.models</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.odr.odrpack</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.cobyla</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.cython_optimize</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.lbfgsb</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.linesearch</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.minpack</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.minpack2</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.moduleTNC</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.nonlin</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.optimize</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.slsqp</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.tnc</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.optimize.zeros</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.bsplines</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.filter_design</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.fir_filter_design</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.lti_conversion</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.ltisys</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.signaltools</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.spectral</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.spline</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.waveforms</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.wavelets</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.signal.windows.windows</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.base</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.bsr</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.compressed</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.construct</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.coo</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.csc</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.csr</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.data</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.dia</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.dok</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.extract</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.lil</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.linalg.dsolve</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.linalg.eigen</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.linalg.interface</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.linalg.isolve</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.linalg.matfuncs</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.sparsetools</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.spfuncs</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.sparse.sputils</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.spatial.ckdtree</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.spatial.kdtree</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.spatial.qhull</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.spatial.transform.rotation</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.add_newdocs</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.basic</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.cython_special</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.orthogonal</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.sf_error</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.specfun</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.special.spfun_stats</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.biasedurn</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.kde</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.morestats</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.mstats_basic</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.mstats_extras</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.mvn</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.statlib</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">scipy.stats.stats</code></li> </ul>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tmaris" rel="nofollow">FoX</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4111?redirect=false" rel="nofollow">SPR-4111</a></strong> and commented</p> <p dir="auto">All ApplicationListeners will be instantiated when the ApplicationContext registers its listeners.<br> The consequence of this operation for our application is that nearly all beans are initialized at startup time eventhough lazy-init is set to true on all contexts.<br> This is especially annoying in our integration tests, because the initialization takes a lot of time.</p> <p dir="auto">Isn't there a possibility to register these listeners as a proxy, allowing lazy initialization of these listeners until an application event occurs?<br> Or, maybe it would also be a valid solution to not put the listeners themselves in the map, but the bean names (not that nice, as it would break observer/observable pattern)</p> <p dir="auto">It seems that the getBeansOfType() method in the DefaultListableBeanFactory doesn't take the allowEagerInit boolean into account when retrieving the beans:</p> <p dir="auto">public Map getBeansOfType(Class type, boolean includePrototypes, boolean allowEagerInit) throws BeansException {<br> String[] beanNames = getBeanNamesForType(type, includePrototypes, allowEagerInit);<br> Map result = CollectionFactory.createLinkedMapIfPossible(beanNames.length);<br> for (int i = 0; i &lt; beanNames.length; i++) {<br> String beanName = beanNames[i];<br> try {<br> // -----------------------&gt; getBean(beanName) will always instantiate the bean, eager init or not?<br> result.put(beanName, getBean(beanName));<br> }<br> ...<br> }<br> ...<br> }</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.7</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="398082267" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8733" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8733/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8733">#8733</a> ApplicationListener beans eagerly instantiated even when marked as lazy-init (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=senoctar" rel="nofollow">Patras Vlad Sebastian</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7984?redirect=false" rel="nofollow">SPR-7984</a></strong> and commented</p> <p dir="auto">Allow mapping the same method to multiple URL's that differ in respect to what path variables they use.<br> For example we do not want to transfer the id of the logged in user in the URL for security reasons and simplicity, but there are pages that can either show data for the logged in user or an other user, like a profile page.<br> I would like to be able to map a method like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RequestMapping(value = {&quot;/profile&quot;, &quot;/profile/{userId}&quot;}) public String showProfile(@PathVariable(&quot;userId&quot;) Integer userId) { if (userId == null) { userId = &lt;get id of logged in user from session&gt;; } //do stuff }"><pre class="notranslate"><code class="notranslate">@RequestMapping(value = {"/profile", "/profile/{userId}"}) public String showProfile(@PathVariable("userId") Integer userId) { if (userId == null) { userId = &lt;get id of logged in user from session&gt;; } //do stuff } </code></pre></div> <p dir="auto">The first path of the request mapping to does not have a "userId" path variable, and it would be nice if userId (the method parameter) would be null in this case, rather than throwing IllegalStateException.</p> <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="398112689" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13049" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13049/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13049">#13049</a> A <code class="notranslate">@PathVariable</code> provided in the method parameter, but not in the <code class="notranslate">@RequestMapping</code>, will throw an IllegalStateException. (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">1 votes, 4 watchers</p>
0
<p dir="auto">On Sf2.7 the same schemaLocation is used as before:<br> <a href="http://symfony.com/schema/dic/services/services-1.0.xsd" rel="nofollow">http://symfony.com/schema/dic/services/services-1.0.xsd</a></p> <p dir="auto">But there is an old schema, the new one is only in the DependencyInjection Component.</p> <p dir="auto">I think it would be a good idea to make a new version services-1.1.xsd and publish it under symfony.com</p>
<p dir="auto"><a href="http://symfony.com/schema/dic/services/services-1.0.xsd" rel="nofollow">http://symfony.com/schema/dic/services/services-1.0.xsd</a><br> is not in sync with<br> <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd</a><br> (expression as valid value for argument_type missing)</p>
1
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/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/main/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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">16.0.0-beta.4</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Ubuntu</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">20.04</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">15.3.0</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">On Linux, <code class="notranslate">app.getPath('crashDumps')</code> should return something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.config/{{appName}}/Crash Reports/"><pre class="notranslate"><code class="notranslate">~/.config/{{appName}}/Crash Reports/ </code></pre></div> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">However, with v16 beta it returns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.config/Electron/Crash Reports/"><pre class="notranslate"><code class="notranslate">~/.config/Electron/Crash Reports/ </code></pre></div> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p>
<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/main/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/main/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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">16.0.0-beta.3</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Other Linux</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Linux pop-os 5.13.0-7614-generic #⁠14~1631647151~21.04~930e87c-Ubuntu</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">15.3.0</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">From the documentation for <code class="notranslate">app.getPath("userData")</code> (<a href="https://www.electronjs.org/docs/latest/api/app#appgetpathname" rel="nofollow">https://www.electronjs.org/docs/latest/api/app#appgetpathname</a>):</p> <blockquote> <p dir="auto">The directory for storing your app's configuration files, which by default it is the appData directory appended with your app's name.</p> </blockquote> <p dir="auto">So <code class="notranslate">app.getPath("userData")</code> in the linked gist should be <code class="notranslate">~/.config/test-electron</code>.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><code class="notranslate">app.getName()</code> returns the correct name from package.json but <code class="notranslate">app.getPath("userData")</code> returns <code class="notranslate">~/.config/Electron</code>.</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><a href="https://gist.github.com/weedz/ad42b854df4e5bc411d18e48ae1c91df">https://gist.github.com/weedz/ad42b854df4e5bc411d18e48ae1c91df</a></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">Found this issue which might be relevant <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="943706384" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/30112" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/30112/hovercard" href="https://github.com/electron/electron/issues/30112">#30112</a>.</p> <p dir="auto">Same result in the following devcontainer <a href="https://gist.github.com/weedz/c962d69078391115635772b279264c02">https://gist.github.com/weedz/c962d69078391115635772b279264c02</a>.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <p dir="auto">Mac os<br> jdk1.8<br> Nacos1.1.4 集群<br> dubbo 2.7.6<br> spring boot 2.0.8</p> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="627989964" data-permission-text="Title is private" data-url="https://github.com/alibaba/nacos/issues/2928" data-hovercard-type="issue" data-hovercard-url="/alibaba/nacos/issues/2928/hovercard" href="https://github.com/alibaba/nacos/issues/2928">alibaba/nacos#2928</a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</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="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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.7.0</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Start dubbo-demo consumer. By default the configuration it is using is zookeeper where user by default will not use zookeeper and go with multicast as provider is running on multicast.</p> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <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> <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="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180264392" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/7540" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/7540/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/7540">#7540</a>. Sorry.</p>
<p dir="auto">Hi guys,</p> <p dir="auto">Due to the <code class="notranslate">model_selection</code> refactor, there are a lot of dead links out there. Would it be an option to redirect the old pages such as<br> <a href="http://scikit-learn.org/stable/modules/generated/sklearn.grid_search.GridSearchCV.html" rel="nofollow">http://scikit-learn.org/stable/modules/generated/sklearn.grid_search.GridSearchCV.html</a><br> to<br> <a href="http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html" rel="nofollow">http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html</a></p> <p dir="auto">I know you're using an automated doc generator, so I can imagine this to be a bit a ball ache. But as an end user, I'm sure that this would be much appreciated.</p> <p dir="auto">Thanks!<br> -Kris</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have 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" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &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><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="463075740" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5627" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5627/hovercard" href="https://github.com/celery/celery/issues/5627">#5627</a></li> </ul> <p dir="auto">Similar issues as was solved for this PR for args exists with kwargs.</p> <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>: 4.4.0</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=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">Just run celery beat.</p> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</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="amqp==2.5.2 apipkg==1.5 apiritif==0.9.0 appdirs==1.4.3 Appium-Python-Client==0.48 appnope==0.1.0 argcomplete==1.10.0 arrow==0.10.0 asn1crypto==1.2.0 astunparse==1.6.3 atomicwrites==1.3.0 attrs==19.3.0 autopep8==1.4.4 Babel==2.7.0 backports.csv==1.0.7 bandit==1.6.2 bcrypt==3.1.7 beautifulsoup4==4.8.0 billiard==3.6.1.0 bleach==3.1.0 boto==2.49.0 bs4==0.0.1 bzt==1.14.0 cached-property==1.5.1 cachetools==3.1.1 cairocffi==1.1.0 CairoSVG==2.4.2 celery==4.4.0 certifi==2019.11.28 cffi==1.13.2 chardet==3.0.4 Click==7.0 click-completion==0.5.2 colorama==0.4.3 colorlog==4.0.2 ConfigArgParse==0.15.1 contextlib2==0.5.5 coreapi==2.3.3 coreschema==0.0.4 coverage==5.0.1 crayons==0.3.0 cryptography==2.8 cssselect==1.1.0 cssselect2==0.2.2 cssutils==1.0.2 ddt==1.2.1 decorator==4.4.1 defusedxml==0.6.0 diff-match-patch==20181111 Django==1.11.27 django-activity-stream==0.8.0 django-appconf==1.0.3 django-autofixture==0.12.1 django-celery-beat==1.5.0 django-celery-results==1.1.2 django-compressor==2.3 django-constance==2.0.0 django-countries==5.5 django-crispy-forms==1.8.1 django-debug-toolbar==2.1 django-debug-toolbar-request-history==0.1.0 django-environ==0.4.5 django-extensions==2.2.5 django-extra-fields==1.1.0 django-extra-views==0.10.0 django-fernet-fields==0.6 django-filter==2.2.0 django-fsm==2.7.0 django-guardian==1.5.1 django-haystack==2.8.1 django-import-export==1.2.0 django-jarc==1.0.15 django-jsonfield-compat==0.4.4 django-libsass==0.7 django-media-fixtures==0.0.3 django-memcache-status==2.1 django-memoize==2.2.1 django-modeltranslation==0.12.1 django-oscar==1.5.4 django-oscar-api==1.0.10.post1 django-phonenumber-field==1.3.0 django-picklefield==1.0.0 django-private-storage==2.2.1 django-ratelimit==2.0.0 django-recaptcha2==1.4.1 django-rest-hooks==1.5.0 django-rest-swagger==2.1.2 django-reversion==2.0.8 django-ses==0.8.13 django-silk==3.0.4 django-simple-history==2.8.0 django-tables2==1.16.0 django-timezone-field==3.1 django-transaction-hooks==0.2 django-treebeard==4.3 django-webtest==1.9.7 django-widget-tweaks==1.4.5 djangorestframework==3.9.4 djangorestframework-jwt==1.11.0 djangorestframework-simplejwt==4.3.0 djangorestframework-xml==1.4.0 dnspython==1.15.0 docx2txt==0.8 dparse==0.4.1 EasyProcess==0.2.8 EbookLib==0.17.1 email-validator==1.0.2 entrypoints==0.3 ephem==3.7.6.0 et-xmlfile==1.0.1 execnet==1.7.1 extract-msg==0.23.1 factory-boy==2.12.0 fake-factory==0.7.2 Faker==3.0.0 fintech==4.3.5 flake8==3.7.9 flake8-bugbear==19.8.0 flake8-isort==2.8.0 flake8-polyfill==1.0.2 Flask==1.1.1 flower==0.9.3 fpdf==1.7.2 freezegun==0.3.12 future==0.18.2 fuzzyset==0.0.19 gevent==1.5a2 geventhttpclient-wheels==1.3.1.dev2 gitdb==0.6.4 gitdb2==2.0.6 GitPython==3.0.5 google-api-python-client==1.7.11 google-auth==1.10.0 google-auth-httplib2==0.0.3 google-auth-oauthlib==0.2.0 gprof2dot==2019.11.30 graypy==2.1.0 greenlet==0.4.15 hdrpy==0.3.3 html2text==2019.9.26 html5lib==1.0.1 httplib2==0.14.0 idna==2.8 IMAPClient==2.1.0 importlib-metadata==1.3.0 inflection==0.3.1 ipaddress==1.0.23 ipcalc==1.99.0 ipython==5.3.0 ipython-genutils==0.1.0 isodate==0.6.0 isort==4.3.21 itsdangerous==1.1.0 itypes==1.1.0 jdcal==1.4.1 Jinja2==2.10.3 jsonfield==2.0.2 jsonpath-rw==1.4.0 kombu==4.6.7 libsass==0.19.4 line-profiler==2.0 locustio==0.13.5 lxml==4.4.2 M2Crypto==0.35.2 manhole==1.6.0 MarkupPy==1.14 MarkupSafe==1.1.1 mccabe==0.6.1 mock==2.0.0 mollie-api-python==1.4.5 more-itertools==8.0.2 msgpack==0.6.2 msgpack-python==0.5.6 mysqlclient==1.3.10 newrelic==5.4.0.132 nose==1.3.7 numpy==1.18.0 oauth2client==4.1.3 oauthlib==3.1.0 odfpy==1.4.0 olefile==0.46 openapi-codec==1.3.2 openpyxl==2.6.4 packaging==19.2 paramiko==2.7.1 pathlib2==2.3.5 pbr==5.4.4 pdf417gen==0.7.0 pdfminer.six==20181108 pdfrw==0.4 pep8==1.7.1 pexpect==4.2.1 phonenumbers==8.11.1 pickleshare==0.7.4 Pillow==6.2.1 pip-licenses==1.17.0 pip-review==1.0 pipdeptree==0.12.1 pkg-resources==0.0.0 pkgconfig==1.5.1 pluggy==0.13.1 ply==3.11 premailer==3.6.1 progressbar33==2.4 prompt-toolkit==1.0.13 psutil==5.6.7 psycopg2-binary==2.8.4 PTable==0.9.2 ptyprocess==0.5.1 purl==1.5 py==1.8.0 pyasn1==0.4.8 pyasn1-modules==0.2.7 pyBarcode==0.8b1 pycodestyle==2.5.0 pycountry==19.8.18 pycparser==2.19 pycryptodome==3.9.4 pycycle==0.0.8 pyflakes==2.1.1 Pygments==2.5.2 PyJWT==1.7.1 Pympler==0.8 PyNaCl==1.3.0 pyparsing==2.4.5 PyPDF2==1.26.0 Pyphen==0.9.5 pysftp==0.2.9 pytest==5.3.2 pytest-cache==1.0 pytest-cov==2.8.1 pytest-django==3.7.0 pytest-factoryboy==2.0.3 pytest-forked==1.1.3 pytest-html==1.19.0 pytest-metadata==1.7.0 pytest-mock==1.13.0 pytest-pep8==1.0.6 pytest-sftpserver==1.3.0 pytest-xdist==1.30.0 python-barcode==0.10.0 python-crontab==2.4.0 python-dateutil==2.8.1 python-gnupg==0.4.5 python-Levenshtein==0.12.0 python-memcached==1.59 python-pptx==0.6.18 python3-openid==3.1.0 python3-saml==1.9.0 pytz==2019.3 PyVirtualDisplay==0.2.5 PyYAML==5.2 pyzmq==18.1.1 qrcode==6.1 raven==6.10.0 rcssmin==1.0.6 realbrowserlocusts==0.4 requests==2.22.0 requests-mock==1.7.0 requests-oauthlib==1.3.0 requests-toolbelt==0.9.1 rest-condition==1.0.3 restnavigator==1.0.1 retrying==1.3.3 rjsmin==1.1.0 rsa==4.0 safety==1.8.5 selenium==3.141.0 sepa-generator==0.1.4 shellingham==1.3.1 simplegeneric==0.8.1 simplejson==3.17.0 six==1.12.0 smmap==0.9.0 smmap2==2.0.5 snippetinjector==1.0.0 social-auth-app-django==3.1.0 social-auth-core==3.2.0 sorl-thumbnail==12.5.0 sortedcontainers==2.1.0 soupsieve==1.9.5 SpeechRecognition==3.8.1 sqlparse==0.3.0 stevedore==1.31.0 suds-jurko==0.6 tablib==0.14.0 tabulate==0.8.6 terminaltables==3.1.0 testfixtures==6.10.3 text-unidecode==1.3 textract==1.6.3 texttable==1.6.2 tinycss==0.4 tinycss2==1.0.2 toml==0.9.2 tornado==5.1.1 tqdm==4.40.2 traitlets==4.3.2 typing==3.6.4 tzlocal==1.5.1 unicodecsv==0.14.1 Unidecode==0.4.21 uritemplate==3.0.1 urllib3==1.25.7 urwid==2.0.1 uWSGI==2.0.18 uwsgitop==0.10 vine==1.3.0 vulture==1.2 waitress==1.4.0 wcwidth==0.1.7 WeasyPrint==50 webencodings==0.5.1 WebOb==1.8.5 WebTest==2.0.33 Werkzeug==0.16.0 xlrd==1.2.0 XlsxWriter==1.2.7 xlwt==1.3.0 xmlsec==1.3.3 zeep==3.4.0 zipp==0.6.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.2 apipkg==1.5 apiritif==0.9.0 appdirs==1.4.3 Appium-Python-Client==0.48 appnope==0.1.0 argcomplete==1.10.0 arrow==0.10.0 asn1crypto==1.2.0 astunparse==1.6.3 atomicwrites==1.3.0 attrs==19.3.0 autopep8==1.4.4 Babel==2.7.0 backports.csv==1.0.7 bandit==1.6.2 bcrypt==3.1.7 beautifulsoup4==4.8.0 billiard==3.6.1.0 bleach==3.1.0 boto==2.49.0 bs4==0.0.1 bzt==1.14.0 cached-property==1.5.1 cachetools==3.1.1 cairocffi==1.1.0 CairoSVG==2.4.2 celery==4.4.0 certifi==2019.11.28 cffi==1.13.2 chardet==3.0.4 Click==7.0 click-completion==0.5.2 colorama==0.4.3 colorlog==4.0.2 ConfigArgParse==0.15.1 contextlib2==0.5.5 coreapi==2.3.3 coreschema==0.0.4 coverage==5.0.1 crayons==0.3.0 cryptography==2.8 cssselect==1.1.0 cssselect2==0.2.2 cssutils==1.0.2 ddt==1.2.1 decorator==4.4.1 defusedxml==0.6.0 diff-match-patch==20181111 Django==1.11.27 django-activity-stream==0.8.0 django-appconf==1.0.3 django-autofixture==0.12.1 django-celery-beat==1.5.0 django-celery-results==1.1.2 django-compressor==2.3 django-constance==2.0.0 django-countries==5.5 django-crispy-forms==1.8.1 django-debug-toolbar==2.1 django-debug-toolbar-request-history==0.1.0 django-environ==0.4.5 django-extensions==2.2.5 django-extra-fields==1.1.0 django-extra-views==0.10.0 django-fernet-fields==0.6 django-filter==2.2.0 django-fsm==2.7.0 django-guardian==1.5.1 django-haystack==2.8.1 django-import-export==1.2.0 django-jarc==1.0.15 django-jsonfield-compat==0.4.4 django-libsass==0.7 django-media-fixtures==0.0.3 django-memcache-status==2.1 django-memoize==2.2.1 django-modeltranslation==0.12.1 django-oscar==1.5.4 django-oscar-api==1.0.10.post1 django-phonenumber-field==1.3.0 django-picklefield==1.0.0 django-private-storage==2.2.1 django-ratelimit==2.0.0 django-recaptcha2==1.4.1 django-rest-hooks==1.5.0 django-rest-swagger==2.1.2 django-reversion==2.0.8 django-ses==0.8.13 django-silk==3.0.4 django-simple-history==2.8.0 django-tables2==1.16.0 django-timezone-field==3.1 django-transaction-hooks==0.2 django-treebeard==4.3 django-webtest==1.9.7 django-widget-tweaks==1.4.5 djangorestframework==3.9.4 djangorestframework-jwt==1.11.0 djangorestframework-simplejwt==4.3.0 djangorestframework-xml==1.4.0 dnspython==1.15.0 docx2txt==0.8 dparse==0.4.1 EasyProcess==0.2.8 EbookLib==0.17.1 email-validator==1.0.2 entrypoints==0.3 ephem==3.7.6.0 et-xmlfile==1.0.1 execnet==1.7.1 extract-msg==0.23.1 factory-boy==2.12.0 fake-factory==0.7.2 Faker==3.0.0 fintech==4.3.5 flake8==3.7.9 flake8-bugbear==19.8.0 flake8-isort==2.8.0 flake8-polyfill==1.0.2 Flask==1.1.1 flower==0.9.3 fpdf==1.7.2 freezegun==0.3.12 future==0.18.2 fuzzyset==0.0.19 gevent==1.5a2 geventhttpclient-wheels==1.3.1.dev2 gitdb==0.6.4 gitdb2==2.0.6 GitPython==3.0.5 google-api-python-client==1.7.11 google-auth==1.10.0 google-auth-httplib2==0.0.3 google-auth-oauthlib==0.2.0 gprof2dot==2019.11.30 graypy==2.1.0 greenlet==0.4.15 hdrpy==0.3.3 html2text==2019.9.26 html5lib==1.0.1 httplib2==0.14.0 idna==2.8 IMAPClient==2.1.0 importlib-metadata==1.3.0 inflection==0.3.1 ipaddress==1.0.23 ipcalc==1.99.0 ipython==5.3.0 ipython-genutils==0.1.0 isodate==0.6.0 isort==4.3.21 itsdangerous==1.1.0 itypes==1.1.0 jdcal==1.4.1 Jinja2==2.10.3 jsonfield==2.0.2 jsonpath-rw==1.4.0 kombu==4.6.7 libsass==0.19.4 line-profiler==2.0 locustio==0.13.5 lxml==4.4.2 M2Crypto==0.35.2 manhole==1.6.0 MarkupPy==1.14 MarkupSafe==1.1.1 mccabe==0.6.1 mock==2.0.0 mollie-api-python==1.4.5 more-itertools==8.0.2 msgpack==0.6.2 msgpack-python==0.5.6 mysqlclient==1.3.10 newrelic==5.4.0.132 nose==1.3.7 numpy==1.18.0 oauth2client==4.1.3 oauthlib==3.1.0 odfpy==1.4.0 olefile==0.46 openapi-codec==1.3.2 openpyxl==2.6.4 packaging==19.2 paramiko==2.7.1 pathlib2==2.3.5 pbr==5.4.4 pdf417gen==0.7.0 pdfminer.six==20181108 pdfrw==0.4 pep8==1.7.1 pexpect==4.2.1 phonenumbers==8.11.1 pickleshare==0.7.4 Pillow==6.2.1 pip-licenses==1.17.0 pip-review==1.0 pipdeptree==0.12.1 pkg-resources==0.0.0 pkgconfig==1.5.1 pluggy==0.13.1 ply==3.11 premailer==3.6.1 progressbar33==2.4 prompt-toolkit==1.0.13 psutil==5.6.7 psycopg2-binary==2.8.4 PTable==0.9.2 ptyprocess==0.5.1 purl==1.5 py==1.8.0 pyasn1==0.4.8 pyasn1-modules==0.2.7 pyBarcode==0.8b1 pycodestyle==2.5.0 pycountry==19.8.18 pycparser==2.19 pycryptodome==3.9.4 pycycle==0.0.8 pyflakes==2.1.1 Pygments==2.5.2 PyJWT==1.7.1 Pympler==0.8 PyNaCl==1.3.0 pyparsing==2.4.5 PyPDF2==1.26.0 Pyphen==0.9.5 pysftp==0.2.9 pytest==5.3.2 pytest-cache==1.0 pytest-cov==2.8.1 pytest-django==3.7.0 pytest-factoryboy==2.0.3 pytest-forked==1.1.3 pytest-html==1.19.0 pytest-metadata==1.7.0 pytest-mock==1.13.0 pytest-pep8==1.0.6 pytest-sftpserver==1.3.0 pytest-xdist==1.30.0 python-barcode==0.10.0 python-crontab==2.4.0 python-dateutil==2.8.1 python-gnupg==0.4.5 python-Levenshtein==0.12.0 python-memcached==1.59 python-pptx==0.6.18 python3-openid==3.1.0 python3-saml==1.9.0 pytz==2019.3 PyVirtualDisplay==0.2.5 PyYAML==5.2 pyzmq==18.1.1 qrcode==6.1 raven==6.10.0 rcssmin==1.0.6 realbrowserlocusts==0.4 requests==2.22.0 requests-mock==1.7.0 requests-oauthlib==1.3.0 requests-toolbelt==0.9.1 rest-condition==1.0.3 restnavigator==1.0.1 retrying==1.3.3 rjsmin==1.1.0 rsa==4.0 safety==1.8.5 selenium==3.141.0 sepa-generator==0.1.4 shellingham==1.3.1 simplegeneric==0.8.1 simplejson==3.17.0 six==1.12.0 smmap==0.9.0 smmap2==2.0.5 snippetinjector==1.0.0 social-auth-app-django==3.1.0 social-auth-core==3.2.0 sorl-thumbnail==12.5.0 sortedcontainers==2.1.0 soupsieve==1.9.5 SpeechRecognition==3.8.1 sqlparse==0.3.0 stevedore==1.31.0 suds-jurko==0.6 tablib==0.14.0 tabulate==0.8.6 terminaltables==3.1.0 testfixtures==6.10.3 text-unidecode==1.3 textract==1.6.3 texttable==1.6.2 tinycss==0.4 tinycss2==1.0.2 toml==0.9.2 tornado==5.1.1 tqdm==4.40.2 traitlets==4.3.2 typing==3.6.4 tzlocal==1.5.1 unicodecsv==0.14.1 Unidecode==0.4.21 uritemplate==3.0.1 urllib3==1.25.7 urwid==2.0.1 uWSGI==2.0.18 uwsgitop==0.10 vine==1.3.0 vulture==1.2 waitress==1.4.0 wcwidth==0.1.7 WeasyPrint==50 webencodings==0.5.1 WebOb==1.8.5 WebTest==2.0.33 Werkzeug==0.16.0 xlrd==1.2.0 XlsxWriter==1.2.7 xlwt==1.3.0 xmlsec==1.3.3 zeep==3.4.0 zipp==0.6.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto">Not sure how to reproduce at this moment apart from just running celery beat.</p> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Celery beat runs without errors.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Celery beat log shows following errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/ah/virtualenv/lib/python3.5/site-packages/celery/beat.py&quot;, line 273, in apply_entry result = self.apply_async(entry, producer=producer, advance=False) File &quot;/home/ah/virtualenv/lib/python3.5/site-packages/celery/beat.py&quot;, line 401, in apply_async entry, exc=exc)), sys.exc_info()[2]) File &quot;/home/ah/virtualenv/lib/python3.5/site-packages/vine/five.py&quot;, line 194, in reraise raise value.with_traceback(tb) File &quot;/home/ah/virtualenv/lib/python3.5/site-packages/celery/beat.py&quot;, line 388, in apply_async entry_kwargs = {k: v() if isinstance(v, BeatLazyFunc) else v for k, v in entry.kwargs.items()} celery.beat.SchedulingError: Couldn't apply scheduled task sync_products_for_source_40023: 'NoneType' object has no attribute 'items'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/ah/virtualenv/lib/python3.5/site-packages/celery/beat.py", line 273, in apply_entry result = self.apply_async(entry, producer=producer, advance=False) File "/home/ah/virtualenv/lib/python3.5/site-packages/celery/beat.py", line 401, in apply_async entry, exc=exc)), sys.exc_info()[2]) File "/home/ah/virtualenv/lib/python3.5/site-packages/vine/five.py", line 194, in reraise raise value.with_traceback(tb) File "/home/ah/virtualenv/lib/python3.5/site-packages/celery/beat.py", line 388, in apply_async entry_kwargs = {k: v() if isinstance(v, BeatLazyFunc) else v for k, v in entry.kwargs.items()} celery.beat.SchedulingError: Couldn't apply scheduled task sync_products_for_source_40023: 'NoneType' object has no attribute 'items' </code></pre></div>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://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"> 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"> 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<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"> 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"> 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" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &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>: 4.4.0</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=""><pre class="notranslate"><code class="notranslate"></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.7.4 or 2.7</li> <li><strong>Minimal Celery Version</strong>: 4.4.0</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</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="alembic==1.3.2 aliyun-python-sdk-core==2.13.13 aliyun-python-sdk-core-v3==2.13.11 aliyun-python-sdk-kms==2.9.0 amqp==2.5.2 billiard==3.6.1.0 celery==4.4.0 certifi==2019.11.28 chardet==3.0.4 Click==7.0 configparser==4.0.2 crcmod==1.7 Flask==1.1.1 Flask-Caching==1.8.0 Flask-Migrate==2.5.2 Flask-Script==2.0.6 Flask-SQLAlchemy==2.4.1 gevent==1.4.0 gitlab==1.0.2 greenlet==0.4.15 gunicorn==20.0.4 idna==2.8 importlib-metadata==1.4.0 itsdangerous==1.1.0 Jinja2==2.10.3 jmespath==0.9.4 kombu==4.6.7 lxml==4.4.2 Mako==1.1.0 MarkupSafe==1.1.1 more-itertools==8.1.0 oss2==2.9.1 pycryptodome==3.9.4 pymongo==3.10.0 PyMySQL==0.9.3 python-dateutil==2.8.1 python-editor==1.0.4 pytz==2019.3 redis==3.3.11 requests==2.22.0 six==1.13.0 SQLAlchemy==1.3.12 urllib3==1.25.7 vine==1.3.0 Werkzeug==0.16.0 zipp==2.0.0 "><pre class="notranslate"><code class="notranslate">alembic==1.3.2 aliyun-python-sdk-core==2.13.13 aliyun-python-sdk-core-v3==2.13.11 aliyun-python-sdk-kms==2.9.0 amqp==2.5.2 billiard==3.6.1.0 celery==4.4.0 certifi==2019.11.28 chardet==3.0.4 Click==7.0 configparser==4.0.2 crcmod==1.7 Flask==1.1.1 Flask-Caching==1.8.0 Flask-Migrate==2.5.2 Flask-Script==2.0.6 Flask-SQLAlchemy==2.4.1 gevent==1.4.0 gitlab==1.0.2 greenlet==0.4.15 gunicorn==20.0.4 idna==2.8 importlib-metadata==1.4.0 itsdangerous==1.1.0 Jinja2==2.10.3 jmespath==0.9.4 kombu==4.6.7 lxml==4.4.2 Mako==1.1.0 MarkupSafe==1.1.1 more-itertools==8.1.0 oss2==2.9.1 pycryptodome==3.9.4 pymongo==3.10.0 PyMySQL==0.9.3 python-dateutil==2.8.1 python-editor==1.0.4 pytz==2019.3 redis==3.3.11 requests==2.22.0 six==1.13.0 SQLAlchemy==1.3.12 urllib3==1.25.7 vine==1.3.0 Werkzeug==0.16.0 zipp==2.0.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" celery -A tasks worker --loglevel=info --pool=solo"><pre class="notranslate"> celery -A tasks worker --loglevel=info --pool=solo</pre></div> <p dir="auto"></p> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" from tasks import celery_app task_id = &quot;some_task_id&quot; logger.info(&quot;stoping task: %s&quot; % task_id) celery_app.control.revoke(task_id, terminate=True, signal='SIGKILL')"><pre class="notranslate"> <span class="pl-k">from</span> <span class="pl-s1">tasks</span> <span class="pl-k">import</span> <span class="pl-s1">celery_app</span> <span class="pl-s1">task_id</span> <span class="pl-c1">=</span> <span class="pl-s">"some_task_id"</span> <span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"stoping task: %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">task_id</span>) <span class="pl-s1">celery_app</span>.<span class="pl-s1">control</span>.<span class="pl-en">revoke</span>(<span class="pl-s1">task_id</span>, <span class="pl-s1">terminate</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">signal</span><span class="pl-c1">=</span><span class="pl-s">'SIGKILL'</span>)</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">task should be terminated</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">task can't be terminate</p> <p dir="auto">when using "celery -A tasks worker --loglevel=info <del>--pool=solo</del>" to start celery, There is no problem</p>
0
<ul dir="auto"> <li>VSCode Version:1.1.0-alpha</li> <li>OS Version:Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Run code-alpha --help</li> </ol> <p dir="auto">Shown as "list-extensions", should be "uninstall-extension"</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --list-extensions List the installed extensions. --install-extension &lt;extension&gt; Installs an extension. --list-extensions &lt;extension&gt; Uninstalls an extension."><pre class="notranslate"><code class="notranslate"> --list-extensions List the installed extensions. --install-extension &lt;extension&gt; Installs an extension. --list-extensions &lt;extension&gt; Uninstalls an extension. </code></pre></div> <p dir="auto">See <a class="commit-link" href="https://github.com/microsoft/vscode/commit/b455db9f356a9e395aefa44d9b3f5597c67b7aa0#diff-e255a28340d4f20061d11494e99bd60b"><tt>b455db9</tt>#diff-e255a28340d4f20061d11494e99bd60b</a></p>
<p dir="auto">Using mainly the default generated files from <code class="notranslate">generator-code</code>, a significant number of devDependencies (mostly recursive) are pulled in - mainly because of Mocha. For development this is fine (I love Mocha). But why blindly package them all with <code class="notranslate">vsce package</code>? Perhaps create an output directory of everything <code class="notranslate">vsce ls</code> would find but <em>node_modules</em>, then run <code class="notranslate">npm install --production</code> and package that directory. Would certainly reduce the size of VSCode extensions. Mine - with only the addition of 1 small module (with no dependencies itself) is over 5MB.</p>
0
<ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I should be able to run a nextjs app on multiple server replicas without errors occurring.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Trying to run next 4.1.4 in a kubernetes cluster and about half of the requests to the server result in "An unexpected error has occurred." If the request is made client-side, the only error in the console is <code class="notranslate">500 - Internal Server Error. undefined</code>. There is no server log with more error details.</p> <p dir="auto">This does not appear to be happening with a 3.x app run in a similar context.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Create next.js 4 app</li> <li>Run in kubernetes cluster</li> <li>Load page repeatedly</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I've already implemented the build-stats hack here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260043254" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2978" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2978/hovercard?comment_id=334849384&amp;comment_type=issue_comment" href="https://github.com/vercel/next.js/issues/2978#issuecomment-334849384">#2978 (comment)</a> to have consistent build ids across the replicas. That resolved that set of errors but now stuck with undebuggable errors.</p> <p dir="auto">ETA: This appears to still be build id related. The error that's thrown has <code class="notranslate">buildIdMismatched: true</code> even through both replicas have identical <code class="notranslate">.next/build-stats.json</code> files.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>4.1.4</td> </tr> <tr> <td>node</td> <td>8</td> </tr> <tr> <td>OS</td> <td>CoreOS</td> </tr> <tr> <td>browser</td> <td>Chrome/Firefox</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I am using Docker on Digital Ocean for a Next.js based project, the main page is pretty simple and should just show nothing more than a Facebook login button.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">If i try to access it via Browser, the first time it works well and the Login button shows up - if i refresh the page, i get the following error on my screen:<br> <code class="notranslate">Error: Unknown system error -116: Unknown system error -116, stat '/usr/src/app/pages/overview.js'</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">The index page is very simple:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'; import PropTypes from 'prop-types'; import {Button} from 'antd'; import {bindActionCreators} from 'redux'; import {initStore} from '../store'; import withRedux from 'next-redux-wrapper'; import * as userActionCreators from '../actions/user'; class Index extends React.Component { constructor(props) { super(props); this.state = { }; } componentDidMount() { const {checkLogin} = this.props.userActions; //checkLogin(true); //disabled for now, but it makes no difference } onLoginClick = () =&gt; { const {doLogin} = this.props.userActions; doLogin(); }; render() { const {isRequestingLoginStatus} = this.props.user; return ( &lt;div&gt; &lt;Button className=&quot;loginBtn&quot; onClick={this.onLoginClick} type=&quot;primary&quot; loading={isRequestingLoginStatus}&gt;Login&lt;/Button&gt; &lt;style jsx&gt;{` .loginBtn { } `}&lt;/style&gt; &lt;/div&gt; ); } } Index.propTypes = { userActions: PropTypes.object, user: PropTypes.object }; const mapStateToProps = (state) =&gt; { return { user: state.user }; }; function mapDispatchToProps(dispatch) { return { userActions: bindActionCreators(userActionCreators, dispatch) }; } export default withRedux(initStore, mapStateToProps, mapDispatchToProps)(Index);"><pre class="notranslate"><code class="notranslate">import React from 'react'; import PropTypes from 'prop-types'; import {Button} from 'antd'; import {bindActionCreators} from 'redux'; import {initStore} from '../store'; import withRedux from 'next-redux-wrapper'; import * as userActionCreators from '../actions/user'; class Index extends React.Component { constructor(props) { super(props); this.state = { }; } componentDidMount() { const {checkLogin} = this.props.userActions; //checkLogin(true); //disabled for now, but it makes no difference } onLoginClick = () =&gt; { const {doLogin} = this.props.userActions; doLogin(); }; render() { const {isRequestingLoginStatus} = this.props.user; return ( &lt;div&gt; &lt;Button className="loginBtn" onClick={this.onLoginClick} type="primary" loading={isRequestingLoginStatus}&gt;Login&lt;/Button&gt; &lt;style jsx&gt;{` .loginBtn { } `}&lt;/style&gt; &lt;/div&gt; ); } } Index.propTypes = { userActions: PropTypes.object, user: PropTypes.object }; const mapStateToProps = (state) =&gt; { return { user: state.user }; }; function mapDispatchToProps(dispatch) { return { userActions: bindActionCreators(userActionCreators, dispatch) }; } export default withRedux(initStore, mapStateToProps, mapDispatchToProps)(Index); </code></pre></div> <p dir="auto">I installed Sentry and it showed the following additional error information, the "touch" package is used by Next.js:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Unknown system error -116: Unknown system error -116, open '/usr/src/app/pages/index.js' File &quot;fs.js&quot;, line 667, in Object.fs.openSync File &quot;/usr/src/app/node_modules/touch/index.js&quot;, line 176, in TouchSync.open this.onopen(null, fs.openSync(this.path, this.oflags)) File &quot;/usr/src/app/node_modules/touch/index.js&quot;, line 82, in new Touch this.open() File &quot;/usr/src/app/node_modules/touch/index.js&quot;, line 173, in new TouchSync class TouchSync extends Touch { File &quot;/usr/src/app/node_modules/touch/index.js&quot;, line 20, in Function.module.exports.sync.module.exports.touchSync (new TouchSync(validOpts(options, f, null)), undefined) ... (4 additional frame(s) were not displayed)"><pre class="notranslate"><code class="notranslate">Error: Unknown system error -116: Unknown system error -116, open '/usr/src/app/pages/index.js' File "fs.js", line 667, in Object.fs.openSync File "/usr/src/app/node_modules/touch/index.js", line 176, in TouchSync.open this.onopen(null, fs.openSync(this.path, this.oflags)) File "/usr/src/app/node_modules/touch/index.js", line 82, in new Touch this.open() File "/usr/src/app/node_modules/touch/index.js", line 173, in new TouchSync class TouchSync extends Touch { File "/usr/src/app/node_modules/touch/index.js", line 20, in Function.module.exports.sync.module.exports.touchSync (new TouchSync(validOpts(options, f, null)), undefined) ... (4 additional frame(s) were not displayed) </code></pre></div> <p dir="auto">Screenshot of the Error, including Dev Tools:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2619527/37390861-b1a882bc-2769-11e8-8fe3-bc92bb1cdd23.png"><img src="https://user-images.githubusercontent.com/2619527/37390861-b1a882bc-2769-11e8-8fe3-bc92bb1cdd23.png" alt="next-error" style="max-width: 100%;"></a><br> My Dockerfile for Next.js:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM node:latest MAINTAINER Andreas Teufel &lt;a.teufel@limesoda.com&gt; WORKDIR /usr/src/app COPY package*.json ./ COPY yarn.lock ./ RUN yarn install COPY . . RUN yarn global add pm2 EXPOSE 3000 CMD [&quot;pm2-runtime&quot;, &quot;./docker/node/process.yml&quot;]"><pre class="notranslate"><code class="notranslate">FROM node:latest MAINTAINER Andreas Teufel &lt;a.teufel@limesoda.com&gt; WORKDIR /usr/src/app COPY package*.json ./ COPY yarn.lock ./ RUN yarn install COPY . . RUN yarn global add pm2 EXPOSE 3000 CMD ["pm2-runtime", "./docker/node/process.yml"] </code></pre></div> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.0</td> </tr> <tr> <td>node</td> <td>8.x</td> </tr> <tr> <td>OS</td> <td>Ubuntu 17.10 on Digital Ocean</td> </tr> <tr> <td>browser</td> <td>latest Firefox/Chrome</td> </tr> <tr> <td>docker</td> <td>17.12.0-ce-win47</td> </tr> </tbody> </table>
0
<p dir="auto">I have a live website with the problem here: <a href="http://www.studiotaroccomanta.com" rel="nofollow">www.studiotaroccomanta.com</a></p> <p dir="auto">If the main menu is collapsed and closed, when I click the button to open it everything works fine for the first level entries.<br> But when I visualize the submenu "ATTIVITA'" on mobile, leave it open, and then try to click one of the other FIRST level menu (like "CONTATTI"), the submenu simply close, staying on the current page, aka without redirecting me to the correct page.</p> <p dir="auto">Any ideas?</p>
<p dir="auto">In mobile devices, particularly android and safari when textbox is focused the screen moves upwards and textbox goes outside the screen.</p>
0
<ul dir="auto"> <li>Electron Version: 2.0.0</li> <li>Operating System (Platform and Version): Windows 10</li> <li>Last known working Electron version: -</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Non-dragable region if div with <code class="notranslate">position: fixed;</code> and <code class="notranslate">-webkit-app-region: no-drag;</code> is above div with <code class="notranslate">-webkit-app-region: drag;</code></p> <p dir="auto"><strong>Actual behavior</strong><br> region becomes dragable if it's position is fixed and div below has <code class="notranslate">-webkit-app-region: drag;</code></p> <p dir="auto"><strong>To Reproduce</strong><br> Make frameless window, make non-fixed div which have dragging enabled, put fixed div above and disable dragging. Still dragable.</p>
<ul dir="auto"> <li>Electron version: 1.8.1</li> <li>Operating system: Windows 7 x64</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">mouse events should work normally on fixed/absolute-positioned elements.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">-webkit-app-region: drag overrides mouse events on elements positioned above and z-index doesn't have any effect</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">HTML:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;nav&gt;&lt;/nav&gt; &lt;header&gt;&lt;/header&gt; "><pre class="notranslate"><code class="notranslate"> &lt;nav&gt;&lt;/nav&gt; &lt;header&gt;&lt;/header&gt; </code></pre></div> <p dir="auto">CSS:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nav{ position: absolute; z-index: 100; right: 0; top: 0; width: 200px; height: 40px; background: blue; -webkit-app-region: no-drag; } nav:hover{ background: green; } header{ position: relative; z-index: 5; width: 100%; height: 40px; background: red; -webkit-app-region: drag; } "><pre class="notranslate"><code class="notranslate">nav{ position: absolute; z-index: 100; right: 0; top: 0; width: 200px; height: 40px; background: blue; -webkit-app-region: no-drag; } nav:hover{ background: green; } header{ position: relative; z-index: 5; width: 100%; height: 40px; background: red; -webkit-app-region: drag; } </code></pre></div> <p dir="auto">Moving the mouse over the blue nav doesn't turn it green because the header drag is stealing all mouse events...</p>
1
<p dir="auto">There are 7 tests in tests/linalg_tests.py that fail on Mac with scipy vesion 1.4.1 installed.</p> <p dir="auto">The tests are:<br> 'tests/linalg_test.py::NumpyLinalgTest::testEigvals_shape=complex64[50,50]'<br> 'tests/linalg_test.py::NumpyLinalgTest::testPinv_shape=complex64[7,10000]'<br> 'tests/linalg_test.py::ScipyLinalgTest::testLuFactor_n=complex64[200,200]'<br> 'tests/linalg_test.py::ScipyLinalgTest::testExpm_n=complex64[50,50]'<br> 'tests/linalg_test.py::NumpyLinalgTest::testInv_shape=float32[200,200]'<br> 'tests/linalg_test.py::NumpyLinalgTest::testPinv_shape=float32[7,10000]'<br> 'tests/linalg_test.py::ScipyLinalgTest::testExpm_n=float32[50,50]'</p> <p dir="auto">The failure is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="worker 'gw2' crashed while running 'tests/linalg_test.py::NumpyLinalgTest::testEigvals_shape=complex64[50,50]'"><pre class="notranslate"><code class="notranslate">worker 'gw2' crashed while running 'tests/linalg_test.py::NumpyLinalgTest::testEigvals_shape=complex64[50,50]' </code></pre></div> <p dir="auto">A longer stack trace is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal Python error: Bus error Thread 0x000070000693a000 (most recent call first): File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 400 in read File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 432 in from_io File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 967 in _thread_receiver File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 220 in run File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 285 in _perform_spawn Thread 0x0000000106b4d5c0 (most recent call first): File &quot;/Users/necula/Source/jax/jax/interpreters/xla.py&quot;, line 731 in _value File &quot;/Users/necula/Source/jax/jax/interpreters/xla.py&quot;, line 826 in __array__ File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/numpy/core/_asarray.py&quot;, line 85 in asarray File &quot;/Users/necula/Source/jax/jax/test_util.py&quot;, line 682 in assertAllClose File &quot;/Users/necula/Source/jax/jax/test_util.py&quot;, line 727 in _CompileAndCheck File &quot;/Users/necula/Source/jax/tests/linalg_test.py&quot;, line 994 in testExpm File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/absl/testing/parameterized.py&quot;, line 263 in bound_param_test File &quot;/Users/necula/homebrew/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py&quot;, line 628 in run File &quot;/Users/necula/homebrew/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py&quot;, line 676 in __call__ File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/unittest.py&quot;, line 207 in runtest File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 117 in pytest_runtest_call File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py&quot;, line 187 in _multicall File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 81 in &lt;lambda&gt; File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 87 in _hookexec File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py&quot;, line 289 in __call__ File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 192 in &lt;lambda&gt; File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 220 in from_call File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 192 in call_runtest_hook File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 167 in call_and_report File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 87 in runtestprotocol File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py&quot;, line 72 in pytest_runtest_protocol File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py&quot;, line 187 in _multicall File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 81 in &lt;lambda&gt; File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 87 in _hookexec File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py&quot;, line 289 in __call__ File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/xdist/remote.py&quot;, line 85 in run_one_test File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/xdist/remote.py&quot;, line 71 in pytest_runtestloop File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py&quot;, line 187 in _multicall File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 81 in &lt;lambda&gt; File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 87 in _hookexec File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py&quot;, line 289 in __call__ File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/main.py&quot;, line 235 in _main File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/main.py&quot;, line 191 in wrap_session File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/main.py&quot;, line 228 in pytest_cmdline_main File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py&quot;, line 187 in _multicall File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 81 in &lt;lambda&gt; File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py&quot;, line 87 in _hookexec File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py&quot;, line 289 in __call__ File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/xdist/remote.py&quot;, line 250 in &lt;module&gt; File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 1084 in executetask File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 220 in run File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 285 in _perform_spawn File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 267 in integrate_as_primary_thread File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 1060 in serve File &quot;/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py&quot;, line 1554 in serve File &quot;&lt;string&gt;&quot;, line 8 in &lt;module&gt; File &quot;&lt;string&gt;&quot;, line 1 in &lt;module&gt; [gw0] node down: Not properly terminated f replacing crashed worker gw0"><pre class="notranslate"><code class="notranslate">Fatal Python error: Bus error Thread 0x000070000693a000 (most recent call first): File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 400 in read File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 432 in from_io File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 967 in _thread_receiver File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 220 in run File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 285 in _perform_spawn Thread 0x0000000106b4d5c0 (most recent call first): File "/Users/necula/Source/jax/jax/interpreters/xla.py", line 731 in _value File "/Users/necula/Source/jax/jax/interpreters/xla.py", line 826 in __array__ File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/numpy/core/_asarray.py", line 85 in asarray File "/Users/necula/Source/jax/jax/test_util.py", line 682 in assertAllClose File "/Users/necula/Source/jax/jax/test_util.py", line 727 in _CompileAndCheck File "/Users/necula/Source/jax/tests/linalg_test.py", line 994 in testExpm File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/absl/testing/parameterized.py", line 263 in bound_param_test File "/Users/necula/homebrew/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628 in run File "/Users/necula/homebrew/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 676 in __call__ File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/unittest.py", line 207 in runtest File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 117 in pytest_runtest_call File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 81 in &lt;lambda&gt; File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__ File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 192 in &lt;lambda&gt; File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 220 in from_call File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 192 in call_runtest_hook File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 167 in call_and_report File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 87 in runtestprotocol File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/runner.py", line 72 in pytest_runtest_protocol File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 81 in &lt;lambda&gt; File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__ File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/xdist/remote.py", line 85 in run_one_test File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/xdist/remote.py", line 71 in pytest_runtestloop File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 81 in &lt;lambda&gt; File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__ File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/main.py", line 235 in _main File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/main.py", line 191 in wrap_session File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/_pytest/main.py", line 228 in pytest_cmdline_main File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 81 in &lt;lambda&gt; File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/manager.py", line 87 in _hookexec File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/pluggy/hooks.py", line 289 in __call__ File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/xdist/remote.py", line 250 in &lt;module&gt; File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 1084 in executetask File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 220 in run File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 285 in _perform_spawn File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 267 in integrate_as_primary_thread File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 1060 in serve File "/Users/necula/.virtualenvs/jax/lib/python3.7/site-packages/execnet/gateway_base.py", line 1554 in serve File "&lt;string&gt;", line 8 in &lt;module&gt; File "&lt;string&gt;", line 1 in &lt;module&gt; [gw0] node down: Not properly terminated f replacing crashed worker gw0 </code></pre></div> <p dir="auto">I will disable the tests for now.</p>
<p dir="auto">I'm not exactly sure <em>why</em> this happens, being unfamiliar with the internal architecture, but on MacOS with Python 3.6.8, the following code segfaults if scipy 1.2.1 is installed (the version that comes by default when you <code class="notranslate">pip install jax jaxlib</code>):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.random as random import jax.scipy.linalg as linalg key = random.PRNGKey(42) # For some reason, matrices smaller than (50, 50) or so do not trigger segfaults X = random.normal(key, (500, 500)) A = X @ X.T # Drawn from standard Wishart distribution linalg.cholesky(A) print(&quot;Success!&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span> <span class="pl-k">as</span> <span class="pl-s1">random</span> <span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span> <span class="pl-k">as</span> <span class="pl-s1">linalg</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">42</span>) <span class="pl-c"># For some reason, matrices smaller than (50, 50) or so do not trigger segfaults</span> <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">key</span>, (<span class="pl-c1">500</span>, <span class="pl-c1">500</span>)) <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-v">X</span> @ <span class="pl-v">X</span>.<span class="pl-v">T</span> <span class="pl-c"># Drawn from standard Wishart distribution</span> <span class="pl-s1">linalg</span>.<span class="pl-en">cholesky</span>(<span class="pl-v">A</span>) <span class="pl-en">print</span>(<span class="pl-s">"Success!"</span>)</pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -W ignore test.py zsh: bus error python -W ignore test.py"><pre class="notranslate"><code class="notranslate">$ python -W ignore test.py zsh: bus error python -W ignore test.py </code></pre></div> <p dir="auto">If I roll back to Scipy 1.1.0, everything works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -W ignore test.py Success!"><pre class="notranslate"><code class="notranslate">$ python -W ignore test.py Success! </code></pre></div> <p dir="auto">This is a great project by the way--thanks for working on it!</p> <p dir="auto">Edit: after further digging, I found the following in the the Scipy 1.2 release notes:</p> <blockquote> <p dir="auto">scipy.linalg.lapack now exposes the LAPACK routines using the Rectangular Full Packed storage (RFP) for upper triangular, lower triangular, symmetric, or Hermitian matrices; the upper trapezoidal fat matrix RZ decomposition routines are now available as well.</p> </blockquote> <p dir="auto">Perhaps this has something to do with it?</p> <p dir="auto">Even more edits: yet more digging has revealed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="406164520" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/9751" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/9751/hovercard" href="https://github.com/scipy/scipy/issues/9751">scipy/scipy#9751</a>, which hints that this might be caused by a specific (old) version of XCode. I will report back once XCode is upgraded.</p>
1
<p dir="auto">I'm developing these features for a flutter app: loading an image from gallery or from camera and allow rotate it.</p> <p dir="auto">Those operations are expensive so I'm computing them in another thread.</p> <p dir="auto">The code is working fine in debug mode, but when I try with release or profiler mode the app crashes and stop working only when I try to rotate the image.<br> I have more operations working in another thread and there is no problem with those, the problem is only with this operation.</p> <p dir="auto">Run <code class="notranslate">flutter doctor -v</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.9.4, on Linux, locale es_ES.UTF-8) • Flutter version 0.9.4 at /home/nadia/flutter • Framework revision f37c235c32 (hace 3 semanas), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/nadia/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /home/nadia/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] Android Studio (version 3.2) • Android Studio at /home/nadia/android-studio • Flutter plugin version 29.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected devices (1 available) • NX591J • d2ab515a • android-arm64 • Android 7.1.2 (API 25) "><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.9.4, on Linux, locale es_ES.UTF-8) • Flutter version 0.9.4 at /home/nadia/flutter • Framework revision f37c235c32 (hace 3 semanas), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/nadia/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /home/nadia/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] Android Studio (version 3.2) • Android Studio at /home/nadia/android-studio • Flutter plugin version 29.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected devices (1 available) • NX591J • d2ab515a • android-arm64 • Android 7.1.2 (API 25) </code></pre></div> <p dir="auto">This is my <code class="notranslate">pubspec.yaml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies: flutter: sdk: flutter cupertino_icons: ^0.1.2 image_picker: ^0.4.10 path_provider: ^0.4.1 path: any image_picker_saver: ^0.1.0 uuid: ^1.0.3 simple_permissions: ^0.1.8 image: ^2.0.4"><pre class="notranslate"><span class="pl-ent">dependencies</span>: <span class="pl-ent">flutter</span>: <span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span> <span class="pl-ent">cupertino_icons</span>: <span class="pl-s">^0.1.2</span> <span class="pl-ent">image_picker</span>: <span class="pl-s">^0.4.10</span> <span class="pl-ent">path_provider</span>: <span class="pl-s">^0.4.1</span> <span class="pl-ent">path</span>: <span class="pl-s">any</span> <span class="pl-ent">image_picker_saver</span>: <span class="pl-s">^0.1.0</span> <span class="pl-ent">uuid</span>: <span class="pl-s">^1.0.3</span> <span class="pl-ent">simple_permissions</span>: <span class="pl-s">^0.1.8</span> <span class="pl-ent">image</span>: <span class="pl-s">^2.0.4</span></pre></div> <p dir="auto">And here is my code. I have the code divided into three files. First my <code class="notranslate">main.dart</code></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart' as imPick; import 'package:flutter/services.dart'; import 'package:image/image.dart' as im; import 'package:path_provider/path_provider.dart'; import 'package:simple_permissions/simple_permissions.dart'; import 'imageUtils.dart'; import 'toCompute.dart'; void main() =&gt; runApp(new MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return new MaterialApp( /*theme: new ThemeData( primarySwatch: Colors.white, ), */ showPerformanceOverlay: true, debugShowCheckedModeBanner: false, home: CameraUpload(), ); } } class _AkkaMark extends State&lt;CameraUpload&gt; { File _imageFile; String _path; List&lt;Widget&gt; _buttons; im.Image _finalImage; Widget _widgetForBody; Widget _imageForBody; Widget _loading; double _widthS; double _heightS; String _temporalDir = &quot;/Pictures/AKKAmarkTemporal&quot;; final _key = new GlobalKey&lt;ScaffoldState&gt;(); List&lt;String&gt; _savedImages = new List(); void _setWidgets(){ _imageForBody = new Stack( fit: StackFit.expand, children: &lt;Widget&gt;[ _setImage(), new Container( alignment: Alignment.bottomCenter, child: new Stack( alignment: Alignment.bottomCenter, overflow: Overflow.visible, children: _buttons, ), ) ] , ); _loading = new Container( child: new Stack( fit: StackFit.expand, children: &lt;Widget&gt;[ _imageFile == null? new Center(child: new Text('Pick image or upload from files', textAlign: TextAlign.center, )): new Image.file(_imageFile, fit: BoxFit.contain,), new Container( alignment: Alignment.bottomCenter, child: new Stack( alignment: Alignment.bottomCenter, overflow: Overflow.visible, children: _buttons, ), ), new Container( alignment: AlignmentDirectional.center, decoration: new BoxDecoration( color: Colors.white70, ), child: new Container( decoration: new BoxDecoration( color: Colors.blue[200], borderRadius: new BorderRadius.circular(10.0) ), width: 300.0, height: 200.0, alignment: AlignmentDirectional.center, child: new Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: &lt;Widget&gt;[ new Center( child: new SizedBox( height: 50.0, width: 50.0, child: new CircularProgressIndicator( value: null, strokeWidth: 7.0, ), ), ), new Container( margin: const EdgeInsets.only(top: 25.0), child: new Center( child: new Text( &quot;Loading.. wait...&quot;, style: new TextStyle( color: Colors.white ), ), ), ), ], ), ), ), ], ), ); } @override void initState() { super.initState(); initData(); _widgetForBody = _imageForBody; } void initData() async { await SimplePermissions.requestPermission(Permission.WriteExternalStorage); getExternalStorageDirectory().then((Directory dir){ compute(deleteTemporal, dir.path + _temporalDir); }); _setWidgets(); getImageCamera(); } void _setStateImage(){ setState(() { _setWidgets(); _widgetForBody = _imageForBody; }); } void _setStateLoading(){ setState(() { _widgetForBody = _loading; }); } /* Update the main screen: * - If there is no image selected, show text * - If there is an image: preview this and show new buttons*/ Widget _setImage() { if (_imageFile == null) { _setInitialButtons(); return new Center(child: new Text('Pick image or upload from files', textAlign: TextAlign.center, )); } else { _showExtraButtons(); return new Image.file(_imageFile, fit: BoxFit.contain,); } } //Open the camera and save the image in variable getImageCamera() async { File image = await imPick.ImagePicker.pickImage(source: imPick.ImageSource.camera, maxWidth: 2048.0); _loadNewImage(image); } //Open the gallery and save the image choose in variable getImageFile() async { File image = await imPick.ImagePicker.pickImage(source: imPick.ImageSource.gallery, maxWidth: 2048.0); _loadNewImage(image); } //NEW _loadNewImage(File image){ _setStateLoading(); compute(deleteImages, _savedImages); _savedImages.clear(); _imageFile = image == null &amp;&amp; _imageFile != null? _imageFile: image; if(_imageFile != null ){ _savedImages.add(_imageFile.path); compute(decodeImage, _imageFile).then((im.Image imageDecode){ _finalImage = imageDecode; _setStateImage(); }); } else{ _setStateImage(); } } /* Init the variable with the default buttons */ _setInitialButtons() { //Initially only two buttons, centered in the screen double iniPosW = _widthS/2; double iniPosH = _heightS/1.2; _buttons = [ createButton(getImageCamera, 'Pick image', new Icon(Icons.add_a_photo), new EdgeInsets.fromLTRB(iniPosW, iniPosH, 0.0, 0.0) ), createButton(getImageFile, 'Upload from files', new Icon(Icons.file_upload), new EdgeInsets.fromLTRB(iniPosW - (_widthS * 0.18), iniPosH, 0.0, 0.0) ), ]; } //Append the button for select the position _showExtraButtons() { double iniPosW = _widthS * 0.05; double iniPosH = _heightS/1.12; _buttons = [ //Pick image from camera createButton(getImageCamera, 'Pick image', new Icon(Icons.add_a_photo), new EdgeInsets.fromLTRB( iniPosW, iniPosH, 0.0, 0.0) ), //Upload image from files createButton(getImageFile, 'Upload from files', new Icon(Icons.file_upload), new EdgeInsets.fromLTRB( iniPosW + ( _widthS * 0.11), iniPosH - ( _heightS *0.16), 0.0, 0.0 ) ), //To rotate image createButton( () { _computeRotate(); }, 'Rotate right', new Icon(Icons.rotate_right), new EdgeInsets.fromLTRB( iniPosW + ( _widthS * 0.62), iniPosH - ( _heightS *0.16), 0.0, 0.0 ) ), //To save image createButton( () { new ImageUtils().saveImage(_imageFile).then((String path){ _path = path; compute(deleteImages, _savedImages); _savedImages.clear(); _savedImages.add(_path); }); }, 'Save image', new Icon(Icons.save), new EdgeInsets.fromLTRB(iniPosW + ( _widthS * 0.75), iniPosH, 0.0, 0.0 )), ]; //Back if( _savedImages.length &gt; 1) _buttons.add(createButton(_back, 'Back', new Icon(Icons.reply), new EdgeInsets.fromLTRB( iniPosW + ( _widthS * 0.78), 0.0, 0.0, _heightS * 0.84) ) ); } void _back(){ _setStateLoading(); int lenght = _savedImages.length; File image = new File( _savedImages[ lenght - 2] ); print(image); List&lt;String&gt; last = new List(); last.add(_savedImages[lenght - 1]); compute(deleteImages, last); _savedImages.removeLast(); _imageFile = image; compute(decodeImage, _imageFile).then((im.Image imageDecode){ _finalImage = imageDecode; _setStateImage(); }); } void _computeRotate(){ _setStateLoading(); new ImageUtils().saveImageTemporal(_imageFile, _temporalDir).then((File file){ _path = file.path; _savedImages.add(_path); List&lt;Object&gt; arg = new List(); arg.add(_finalImage); arg.add(_path); print(&quot;Rotating...&quot;); compute(rotateImage, arg).then((List&lt;Object&gt; objects){ _finalImage = objects[0]; _imageFile = objects[1]; _setStateImage(); }); }); } Positioned createButton(Function onPressed, tooltip, Widget icon, EdgeInsets padding){ return new Positioned( top: padding.top, bottom: padding.bottom, left: padding.left, //right: padding.right, child: new CircleAvatar( radius: 26.0, child: FloatingActionButton( elevation: 6.0, onPressed: onPressed, tooltip: tooltip, child: icon, ), ), ); } @override Widget build(BuildContext context) { _heightS = MediaQuery.of(context).size.height; _widthS = MediaQuery.of(context).size.width; return Scaffold( key: _key, body: _widgetForBody, backgroundColor: Color.fromRGBO(239, 239, 240, 0.9), ); } } class CameraUpload extends StatefulWidget { @override _AkkaMark createState() =&gt; new _AkkaMark(); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:io'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter/foundation.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:image_picker/image_picker.dart'</span> <span class="pl-k">as</span> imPick; <span class="pl-k">import</span> <span class="pl-s">'package:flutter/services.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:image/image.dart'</span> <span class="pl-k">as</span> im; <span class="pl-k">import</span> <span class="pl-s">'package:path_provider/path_provider.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'package:simple_permissions/simple_permissions.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'imageUtils.dart'</span>; <span class="pl-k">import</span> <span class="pl-s">'toCompute.dart'</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=&gt;</span> <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>()); <span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-c">// This widget is the root of your application.</span> <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>( <span class="pl-c">/*theme: new ThemeData(</span> <span class="pl-c"> primarySwatch: Colors.white,</span> <span class="pl-c"> ),</span> <span class="pl-c">*/</span> showPerformanceOverlay<span class="pl-k">:</span> <span class="pl-c1">true</span>, debugShowCheckedModeBanner<span class="pl-k">:</span> <span class="pl-c1">false</span>, home<span class="pl-k">:</span> <span class="pl-c1">CameraUpload</span>(), ); } } <span class="pl-k">class</span> <span class="pl-c1">_AkkaMark</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">CameraUpload</span>&gt; { <span class="pl-c1">File</span> _imageFile; <span class="pl-c1">String</span> _path; <span class="pl-c1">List</span>&lt;<span class="pl-c1">Widget</span>&gt; _buttons; im.<span class="pl-c1">Image</span> _finalImage; <span class="pl-c1">Widget</span> _widgetForBody; <span class="pl-c1">Widget</span> _imageForBody; <span class="pl-c1">Widget</span> _loading; <span class="pl-c1">double</span> _widthS; <span class="pl-c1">double</span> _heightS; <span class="pl-c1">String</span> _temporalDir <span class="pl-k">=</span> <span class="pl-s">"/Pictures/AKKAmarkTemporal"</span>; <span class="pl-k">final</span> _key <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt;(); <span class="pl-c1">List</span>&lt;<span class="pl-c1">String</span>&gt; _savedImages <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">List</span>(); <span class="pl-k">void</span> <span class="pl-en">_setWidgets</span>(){ _imageForBody <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( fit<span class="pl-k">:</span> <span class="pl-c1">StackFit</span>.expand, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-en">_setImage</span>(), <span class="pl-k">new</span> <span class="pl-c1">Container</span>( alignment<span class="pl-k">:</span> <span class="pl-c1">Alignment</span>.bottomCenter, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( alignment<span class="pl-k">:</span> <span class="pl-c1">Alignment</span>.bottomCenter, overflow<span class="pl-k">:</span> <span class="pl-c1">Overflow</span>.visible, children<span class="pl-k">:</span> _buttons, ), ) ] , ); _loading <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( fit<span class="pl-k">:</span> <span class="pl-c1">StackFit</span>.expand, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ _imageFile <span class="pl-k">==</span> <span class="pl-c1">null</span><span class="pl-k">?</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Pick image or upload from files'</span>, textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center, ))<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Image</span>.<span class="pl-en">file</span>(_imageFile, fit<span class="pl-k">:</span> <span class="pl-c1">BoxFit</span>.contain,), <span class="pl-k">new</span> <span class="pl-c1">Container</span>( alignment<span class="pl-k">:</span> <span class="pl-c1">Alignment</span>.bottomCenter, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( alignment<span class="pl-k">:</span> <span class="pl-c1">Alignment</span>.bottomCenter, overflow<span class="pl-k">:</span> <span class="pl-c1">Overflow</span>.visible, children<span class="pl-k">:</span> _buttons, ), ), <span class="pl-k">new</span> <span class="pl-c1">Container</span>( alignment<span class="pl-k">:</span> <span class="pl-c1">AlignmentDirectional</span>.center, decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white70, ), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.blue[<span class="pl-c1">200</span>], borderRadius<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">BorderRadius</span>.<span class="pl-en">circular</span>(<span class="pl-c1">10.0</span>) ), width<span class="pl-k">:</span> <span class="pl-c1">300.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">200.0</span>, alignment<span class="pl-k">:</span> <span class="pl-c1">AlignmentDirectional</span>.center, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>( crossAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">CrossAxisAlignment</span>.center, mainAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">MainAxisAlignment</span>.center, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">Center</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">SizedBox</span>( height<span class="pl-k">:</span> <span class="pl-c1">50.0</span>, width<span class="pl-k">:</span> <span class="pl-c1">50.0</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">CircularProgressIndicator</span>( value<span class="pl-k">:</span> <span class="pl-c1">null</span>, strokeWidth<span class="pl-k">:</span> <span class="pl-c1">7.0</span>, ), ), ), <span class="pl-k">new</span> <span class="pl-c1">Container</span>( margin<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">25.0</span>), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>( <span class="pl-s">"Loading.. wait..."</span>, style<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextStyle</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white ), ), ), ), ], ), ), ), ], ), ); } <span class="pl-k">@override</span> <span class="pl-k">void</span> <span class="pl-en">initState</span>() { <span class="pl-c1">super</span>.<span class="pl-en">initState</span>(); <span class="pl-en">initData</span>(); _widgetForBody <span class="pl-k">=</span> _imageForBody; } <span class="pl-k">void</span> <span class="pl-en">initData</span>() <span class="pl-k">async</span> { <span class="pl-k">await</span> <span class="pl-c1">SimplePermissions</span>.<span class="pl-en">requestPermission</span>(<span class="pl-c1">Permission</span>.<span class="pl-c1">WriteExternalStorage</span>); <span class="pl-en">getExternalStorageDirectory</span>().<span class="pl-en">then</span>((<span class="pl-c1">Directory</span> dir){ <span class="pl-en">compute</span>(deleteTemporal, dir.path <span class="pl-k">+</span> _temporalDir); }); <span class="pl-en">_setWidgets</span>(); <span class="pl-en">getImageCamera</span>(); } <span class="pl-k">void</span> <span class="pl-en">_setStateImage</span>(){ <span class="pl-en">setState</span>(() { <span class="pl-en">_setWidgets</span>(); _widgetForBody <span class="pl-k">=</span> _imageForBody; }); } <span class="pl-k">void</span> <span class="pl-en">_setStateLoading</span>(){ <span class="pl-en">setState</span>(() { _widgetForBody <span class="pl-k">=</span> _loading; }); } <span class="pl-c">/* Update the main screen:</span> <span class="pl-c"> * - If there is no image selected, show text</span> <span class="pl-c"> * - If there is an image: preview this and show new buttons*/</span> <span class="pl-c1">Widget</span> <span class="pl-en">_setImage</span>() { <span class="pl-k">if</span> (_imageFile <span class="pl-k">==</span> <span class="pl-c1">null</span>) { <span class="pl-en">_setInitialButtons</span>(); <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Pick image or upload from files'</span>, textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center, )); } <span class="pl-k">else</span> { <span class="pl-en">_showExtraButtons</span>(); <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Image</span>.<span class="pl-en">file</span>(_imageFile, fit<span class="pl-k">:</span> <span class="pl-c1">BoxFit</span>.contain,); } } <span class="pl-c">//Open the camera and save the image in variable</span> <span class="pl-en">getImageCamera</span>() <span class="pl-k">async</span> { <span class="pl-c1">File</span> image <span class="pl-k">=</span> <span class="pl-k">await</span> imPick.<span class="pl-c1">ImagePicker</span>.<span class="pl-en">pickImage</span>(source<span class="pl-k">:</span> imPick.<span class="pl-c1">ImageSource</span>.camera, maxWidth<span class="pl-k">:</span> <span class="pl-c1">2048.0</span>); <span class="pl-en">_loadNewImage</span>(image); } <span class="pl-c">//Open the gallery and save the image choose in variable</span> <span class="pl-en">getImageFile</span>() <span class="pl-k">async</span> { <span class="pl-c1">File</span> image <span class="pl-k">=</span> <span class="pl-k">await</span> imPick.<span class="pl-c1">ImagePicker</span>.<span class="pl-en">pickImage</span>(source<span class="pl-k">:</span> imPick.<span class="pl-c1">ImageSource</span>.gallery, maxWidth<span class="pl-k">:</span> <span class="pl-c1">2048.0</span>); <span class="pl-en">_loadNewImage</span>(image); } <span class="pl-c">//NEW</span> <span class="pl-en">_loadNewImage</span>(<span class="pl-c1">File</span> image){ <span class="pl-en">_setStateLoading</span>(); <span class="pl-en">compute</span>(deleteImages, _savedImages); _savedImages.<span class="pl-en">clear</span>(); _imageFile <span class="pl-k">=</span> image <span class="pl-k">==</span> <span class="pl-c1">null</span> <span class="pl-k">&amp;&amp;</span> _imageFile <span class="pl-k">!=</span> <span class="pl-c1">null</span><span class="pl-k">?</span> _imageFile<span class="pl-k">:</span> image; <span class="pl-k">if</span>(_imageFile <span class="pl-k">!=</span> <span class="pl-c1">null</span> ){ _savedImages.<span class="pl-en">add</span>(_imageFile.path); <span class="pl-en">compute</span>(decodeImage, _imageFile).<span class="pl-en">then</span>((im.<span class="pl-c1">Image</span> imageDecode){ _finalImage <span class="pl-k">=</span> imageDecode; <span class="pl-en">_setStateImage</span>(); }); } <span class="pl-k">else</span>{ <span class="pl-en">_setStateImage</span>(); } } <span class="pl-c">/* Init the variable with the default buttons */</span> <span class="pl-en">_setInitialButtons</span>() { <span class="pl-c">//Initially only two buttons, centered in the screen</span> <span class="pl-c1">double</span> iniPosW <span class="pl-k">=</span> _widthS<span class="pl-k">/</span><span class="pl-c1">2</span>; <span class="pl-c1">double</span> iniPosH <span class="pl-k">=</span> _heightS<span class="pl-k">/</span><span class="pl-c1">1.2</span>; _buttons <span class="pl-k">=</span> [ <span class="pl-en">createButton</span>(getImageCamera, <span class="pl-s">'Pick image'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.add_a_photo), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>(iniPosW, iniPosH, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>) ), <span class="pl-en">createButton</span>(getImageFile, <span class="pl-s">'Upload from files'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.file_upload), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>(iniPosW <span class="pl-k">-</span> (_widthS <span class="pl-k">*</span> <span class="pl-c1">0.18</span>), iniPosH, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>) ), ]; } <span class="pl-c">//Append the button for select the position</span> <span class="pl-en">_showExtraButtons</span>() { <span class="pl-c1">double</span> iniPosW <span class="pl-k">=</span> _widthS <span class="pl-k">*</span> <span class="pl-c1">0.05</span>; <span class="pl-c1">double</span> iniPosH <span class="pl-k">=</span> _heightS<span class="pl-k">/</span><span class="pl-c1">1.12</span>; _buttons <span class="pl-k">=</span> [ <span class="pl-c">//Pick image from camera</span> <span class="pl-en">createButton</span>(getImageCamera, <span class="pl-s">'Pick image'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.add_a_photo), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>( iniPosW, iniPosH, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>) ), <span class="pl-c">//Upload image from files</span> <span class="pl-en">createButton</span>(getImageFile, <span class="pl-s">'Upload from files'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.file_upload), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>( iniPosW <span class="pl-k">+</span> ( _widthS <span class="pl-k">*</span> <span class="pl-c1">0.11</span>), iniPosH <span class="pl-k">-</span> ( _heightS <span class="pl-k">*</span><span class="pl-c1">0.16</span>), <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span> ) ), <span class="pl-c">//To rotate image</span> <span class="pl-en">createButton</span>( () { <span class="pl-en">_computeRotate</span>(); }, <span class="pl-s">'Rotate right'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.rotate_right), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>( iniPosW <span class="pl-k">+</span> ( _widthS <span class="pl-k">*</span> <span class="pl-c1">0.62</span>), iniPosH <span class="pl-k">-</span> ( _heightS <span class="pl-k">*</span><span class="pl-c1">0.16</span>), <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span> ) ), <span class="pl-c">//To save image</span> <span class="pl-en">createButton</span>( () { <span class="pl-k">new</span> <span class="pl-c1">ImageUtils</span>().<span class="pl-en">saveImage</span>(_imageFile).<span class="pl-en">then</span>((<span class="pl-c1">String</span> path){ _path <span class="pl-k">=</span> path; <span class="pl-en">compute</span>(deleteImages, _savedImages); _savedImages.<span class="pl-en">clear</span>(); _savedImages.<span class="pl-en">add</span>(_path); }); }, <span class="pl-s">'Save image'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.save), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>(iniPosW <span class="pl-k">+</span> ( _widthS <span class="pl-k">*</span> <span class="pl-c1">0.75</span>), iniPosH, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span> )), ]; <span class="pl-c">//Back</span> <span class="pl-k">if</span>( _savedImages.length <span class="pl-k">&gt;</span> <span class="pl-c1">1</span>) _buttons.<span class="pl-en">add</span>(<span class="pl-en">createButton</span>(_back, <span class="pl-s">'Back'</span>, <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.reply), <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">fromLTRB</span>( iniPosW <span class="pl-k">+</span> ( _widthS <span class="pl-k">*</span> <span class="pl-c1">0.78</span>), <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>, _heightS <span class="pl-k">*</span> <span class="pl-c1">0.84</span>) ) ); } <span class="pl-k">void</span> <span class="pl-en">_back</span>(){ <span class="pl-en">_setStateLoading</span>(); <span class="pl-c1">int</span> lenght <span class="pl-k">=</span> _savedImages.length; <span class="pl-c1">File</span> image <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">File</span>( _savedImages[ lenght <span class="pl-k">-</span> <span class="pl-c1">2</span>] ); <span class="pl-en">print</span>(image); <span class="pl-c1">List</span>&lt;<span class="pl-c1">String</span>&gt; last <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">List</span>(); last.<span class="pl-en">add</span>(_savedImages[lenght <span class="pl-k">-</span> <span class="pl-c1">1</span>]); <span class="pl-en">compute</span>(deleteImages, last); _savedImages.<span class="pl-en">removeLast</span>(); _imageFile <span class="pl-k">=</span> image; <span class="pl-en">compute</span>(decodeImage, _imageFile).<span class="pl-en">then</span>((im.<span class="pl-c1">Image</span> imageDecode){ _finalImage <span class="pl-k">=</span> imageDecode; <span class="pl-en">_setStateImage</span>(); }); } <span class="pl-k">void</span> <span class="pl-en">_computeRotate</span>(){ <span class="pl-en">_setStateLoading</span>(); <span class="pl-k">new</span> <span class="pl-c1">ImageUtils</span>().<span class="pl-en">saveImageTemporal</span>(_imageFile, _temporalDir).<span class="pl-en">then</span>((<span class="pl-c1">File</span> file){ _path <span class="pl-k">=</span> file.path; _savedImages.<span class="pl-en">add</span>(_path); <span class="pl-c1">List</span>&lt;<span class="pl-c1">Object</span>&gt; arg <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">List</span>(); arg.<span class="pl-en">add</span>(_finalImage); arg.<span class="pl-en">add</span>(_path); <span class="pl-en">print</span>(<span class="pl-s">"Rotating..."</span>); <span class="pl-en">compute</span>(rotateImage, arg).<span class="pl-en">then</span>((<span class="pl-c1">List</span>&lt;<span class="pl-c1">Object</span>&gt; objects){ _finalImage <span class="pl-k">=</span> objects[<span class="pl-c1">0</span>]; _imageFile <span class="pl-k">=</span> objects[<span class="pl-c1">1</span>]; <span class="pl-en">_setStateImage</span>(); }); }); } <span class="pl-c1">Positioned</span> <span class="pl-en">createButton</span>(<span class="pl-c1">Function</span> onPressed, tooltip, <span class="pl-c1">Widget</span> icon, <span class="pl-c1">EdgeInsets</span> padding){ <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Positioned</span>( top<span class="pl-k">:</span> padding.top, bottom<span class="pl-k">:</span> padding.bottom, left<span class="pl-k">:</span> padding.left, <span class="pl-c">//right: padding.right,</span> child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">CircleAvatar</span>( radius<span class="pl-k">:</span> <span class="pl-c1">26.0</span>, child<span class="pl-k">:</span> <span class="pl-c1">FloatingActionButton</span>( elevation<span class="pl-k">:</span> <span class="pl-c1">6.0</span>, onPressed<span class="pl-k">:</span> onPressed, tooltip<span class="pl-k">:</span> tooltip, child<span class="pl-k">:</span> icon, ), ), ); } <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { _heightS <span class="pl-k">=</span> <span class="pl-c1">MediaQuery</span>.<span class="pl-en">of</span>(context).size.height; _widthS <span class="pl-k">=</span> <span class="pl-c1">MediaQuery</span>.<span class="pl-en">of</span>(context).size.width; <span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>( key<span class="pl-k">:</span> _key, body<span class="pl-k">:</span> _widgetForBody, backgroundColor<span class="pl-k">:</span> <span class="pl-c1">Color</span>.<span class="pl-en">fromRGBO</span>(<span class="pl-c1">239</span>, <span class="pl-c1">239</span>, <span class="pl-c1">240</span>, <span class="pl-c1">0.9</span>), ); } } <span class="pl-k">class</span> <span class="pl-c1">CameraUpload</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">_AkkaMark</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">_AkkaMark</span>(); }</pre></div> <p dir="auto">And the other two files, one that has all the code that I will use isolated <code class="notranslate">toCompute.dart</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'dart:io'; import 'package:image/image.dart' as im; List&lt;Object&gt; rotateImage(List&lt;Object&gt; arg) { im.Image finalImage = arg[0]; String path = arg[1]; finalImage = im.copyRotate(finalImage, 90); List&lt;int&gt; png = im.encodeJpg(finalImage); File imageFileReturn = new File(path)..writeAsBytesSync(png); List&lt;Object&gt; returns = new List(); returns.add(finalImage); returns.add(imageFileReturn); return returns; } im.Image decodeImage(File file){ return im.decodeImage(file.readAsBytesSync()); } bool deleteImages(List&lt;String&gt; imagesPath){ print(&quot;Deleting...&quot;); for( int i = 1; i &lt; imagesPath.length; i++ ){ new File(imagesPath[i]).delete(); } return true; } bool deleteTemporal(String temporalDir){ new Directory( temporalDir ).exists().then((bool exists){ if ( exists ) new Directory( temporalDir ).deleteSync(recursive: true); }); return true; }"><pre class="notranslate"><code class="notranslate">import 'dart:io'; import 'package:image/image.dart' as im; List&lt;Object&gt; rotateImage(List&lt;Object&gt; arg) { im.Image finalImage = arg[0]; String path = arg[1]; finalImage = im.copyRotate(finalImage, 90); List&lt;int&gt; png = im.encodeJpg(finalImage); File imageFileReturn = new File(path)..writeAsBytesSync(png); List&lt;Object&gt; returns = new List(); returns.add(finalImage); returns.add(imageFileReturn); return returns; } im.Image decodeImage(File file){ return im.decodeImage(file.readAsBytesSync()); } bool deleteImages(List&lt;String&gt; imagesPath){ print("Deleting..."); for( int i = 1; i &lt; imagesPath.length; i++ ){ new File(imagesPath[i]).delete(); } return true; } bool deleteTemporal(String temporalDir){ new Directory( temporalDir ).exists().then((bool exists){ if ( exists ) new Directory( temporalDir ).deleteSync(recursive: true); }); return true; } </code></pre></div> <p dir="auto">And other one that I am using to save the images, <code class="notranslate">imageUtils.dart</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'dart:async'; import 'dart:io'; import 'package:path_provider/path_provider.dart'; import 'package:image_picker_saver/image_picker_saver.dart'; import 'package:uuid/uuid.dart'; class ImageUtils { Future&lt;String&gt; saveImage(File image) async { var a = await ImagePickerSaver.saveFile(fileData: image.readAsBytesSync()); return a; } Future&lt;File&gt; saveImageTemporal(File image, String temporalDir) async { temporalDir = await _createTemporalPath(temporalDir); var file = File('$temporalDir/'+generateUuidJpg().toString())..writeAsBytesSync(image.readAsBytesSync()); File('$temporalDir/'+'.nomedia')..writeAsStringSync(''); print('saving... '+file.path); return file; } Future&lt;String&gt; _createTemporalPath(String temporalDir) async { Directory dirFinal; var sdCard = await getExternalStorageDirectory(); dirFinal = await new Directory(sdCard.path + temporalDir).create(recursive: true); return dirFinal.path; } String generateUuidJpg(){ Uuid _uuid = new Uuid(); return _uuid.v1().toString()+&quot;.jpg&quot;; } }"><pre class="notranslate"><code class="notranslate">import 'dart:async'; import 'dart:io'; import 'package:path_provider/path_provider.dart'; import 'package:image_picker_saver/image_picker_saver.dart'; import 'package:uuid/uuid.dart'; class ImageUtils { Future&lt;String&gt; saveImage(File image) async { var a = await ImagePickerSaver.saveFile(fileData: image.readAsBytesSync()); return a; } Future&lt;File&gt; saveImageTemporal(File image, String temporalDir) async { temporalDir = await _createTemporalPath(temporalDir); var file = File('$temporalDir/'+generateUuidJpg().toString())..writeAsBytesSync(image.readAsBytesSync()); File('$temporalDir/'+'.nomedia')..writeAsStringSync(''); print('saving... '+file.path); return file; } Future&lt;String&gt; _createTemporalPath(String temporalDir) async { Directory dirFinal; var sdCard = await getExternalStorageDirectory(); dirFinal = await new Directory(sdCard.path + temporalDir).create(recursive: true); return dirFinal.path; } String generateUuidJpg(){ Uuid _uuid = new Uuid(); return _uuid.v1().toString()+".jpg"; } } </code></pre></div> <p dir="auto">Flutter throws an error which is the same that I can see in my logcat<br> Here is the flutter error<br> <code class="notranslate">Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7f7bdffb90 in tid 21655 (m.akka.akkamark)</code><br> And here is my logcat</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7f7e9feca0 in tid 23568 (1.ui) 10-15 13:54:54.493 361 361 W : debuggerd: handling request: pid=22783 uid=10204 gid=10204 tid=23568 10-15 13:54:54.494 23570 23570 I debuggerd64: type=1400 audit(0.0:10486): avc: denied { read } for name=&quot;isolate_snapshot_instr&quot; dev=&quot;mmcblk0p48&quot; ino=1532120 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1 10-15 13:54:54.494 23570 23570 I debuggerd64: type=1400 audit(0.0:10487): avc: denied { open } for path=&quot;/data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr&quot; dev=&quot;mmcblk0p48&quot; ino=1532120 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1 10-15 13:54:54.494 23570 23570 I debuggerd64: type=1400 audit(0.0:10488): avc: denied { getattr } for path=&quot;/data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr&quot; dev=&quot;mmcblk0p48&quot; ino=1532120 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1 10-15 13:54:54.566 23570 23570 F DEBUG : LineageOS Version: '14.1-20180810-UNOFFICIAL-nx591j' 10-15 13:54:54.566 23570 23570 F DEBUG : Build fingerprint: 'nubia/NX591J/NX591J:7.1.1/NMF26F/eng.nubia.20170905.150740:user/release-keys' 10-15 13:54:54.566 23570 23570 F DEBUG : Revision: '0' 10-15 13:54:54.566 23570 23570 F DEBUG : ABI: 'arm64' 10-15 13:54:54.566 23570 23570 F DEBUG : pid: 22783, tid: 23568, name: 1.ui &gt;&gt;&gt; com.akka.akkamark &lt;&lt;&lt; 10-15 13:54:54.566 23570 23570 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7f7e9feca0 10-15 13:54:54.566 23570 23570 F DEBUG : x0 0000007fa1042a71 x1 0000000000aaa000 x2 0000000000237800 x3 000000000046f000 10-15 13:54:54.566 23570 23570 F DEBUG : x4 0000007f7e120c91 x5 0000000000237800 x6 000000000000046f x7 00000000000008de 10-15 13:54:54.566 23570 23570 F DEBUG : x8 0000007f7e38d9d1 x9 0000000000000000 x10 0000000000000001 x11 0000000000000180 10-15 13:54:54.566 23570 23570 F DEBUG : x12 0000000000000004 x13 0000000500000000 x14 0000000000000020 x15 0000007f7df7e268 10-15 13:54:54.566 23570 23570 F DEBUG : x16 0000007f7e9fec91 x17 0000007f7e4192c1 x18 0000000000000116 x19 0000007f84288c30 10-15 13:54:54.566 23570 23570 F DEBUG : x20 0000000000000000 x21 0000007f7df7f0c0 x22 0000007f7df7f0d0 x23 0000007f7df7d270 10-15 13:54:54.566 23570 23570 F DEBUG : x24 0000007f7e5b0321 x25 0000007f7df7d1c0 x26 0000007f82ec3200 x27 0000007f7e4192c0 10-15 13:54:54.567 23570 23570 F DEBUG : x28 0000000000000004 x29 0000007f7df7e278 x30 0000007f844531b0 10-15 13:54:54.567 23570 23570 F DEBUG : sp 0000007f7df7d250 pc 0000007f8445326c pstate 0000000080000000 10-15 13:54:54.567 23570 23570 F DEBUG : 10-15 13:54:54.567 23570 23570 F DEBUG : backtrace: 10-15 13:54:54.567 23570 23570 F DEBUG : #00 pc 00000000002ae26c /data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr 10-15 13:54:54.567 23570 23570 F DEBUG : #01 pc 00000000002ae1ac /data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr"><pre class="notranslate"><code class="notranslate">Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7f7e9feca0 in tid 23568 (1.ui) 10-15 13:54:54.493 361 361 W : debuggerd: handling request: pid=22783 uid=10204 gid=10204 tid=23568 10-15 13:54:54.494 23570 23570 I debuggerd64: type=1400 audit(0.0:10486): avc: denied { read } for name="isolate_snapshot_instr" dev="mmcblk0p48" ino=1532120 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1 10-15 13:54:54.494 23570 23570 I debuggerd64: type=1400 audit(0.0:10487): avc: denied { open } for path="/data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr" dev="mmcblk0p48" ino=1532120 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1 10-15 13:54:54.494 23570 23570 I debuggerd64: type=1400 audit(0.0:10488): avc: denied { getattr } for path="/data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr" dev="mmcblk0p48" ino=1532120 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1 10-15 13:54:54.566 23570 23570 F DEBUG : LineageOS Version: '14.1-20180810-UNOFFICIAL-nx591j' 10-15 13:54:54.566 23570 23570 F DEBUG : Build fingerprint: 'nubia/NX591J/NX591J:7.1.1/NMF26F/eng.nubia.20170905.150740:user/release-keys' 10-15 13:54:54.566 23570 23570 F DEBUG : Revision: '0' 10-15 13:54:54.566 23570 23570 F DEBUG : ABI: 'arm64' 10-15 13:54:54.566 23570 23570 F DEBUG : pid: 22783, tid: 23568, name: 1.ui &gt;&gt;&gt; com.akka.akkamark &lt;&lt;&lt; 10-15 13:54:54.566 23570 23570 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7f7e9feca0 10-15 13:54:54.566 23570 23570 F DEBUG : x0 0000007fa1042a71 x1 0000000000aaa000 x2 0000000000237800 x3 000000000046f000 10-15 13:54:54.566 23570 23570 F DEBUG : x4 0000007f7e120c91 x5 0000000000237800 x6 000000000000046f x7 00000000000008de 10-15 13:54:54.566 23570 23570 F DEBUG : x8 0000007f7e38d9d1 x9 0000000000000000 x10 0000000000000001 x11 0000000000000180 10-15 13:54:54.566 23570 23570 F DEBUG : x12 0000000000000004 x13 0000000500000000 x14 0000000000000020 x15 0000007f7df7e268 10-15 13:54:54.566 23570 23570 F DEBUG : x16 0000007f7e9fec91 x17 0000007f7e4192c1 x18 0000000000000116 x19 0000007f84288c30 10-15 13:54:54.566 23570 23570 F DEBUG : x20 0000000000000000 x21 0000007f7df7f0c0 x22 0000007f7df7f0d0 x23 0000007f7df7d270 10-15 13:54:54.566 23570 23570 F DEBUG : x24 0000007f7e5b0321 x25 0000007f7df7d1c0 x26 0000007f82ec3200 x27 0000007f7e4192c0 10-15 13:54:54.567 23570 23570 F DEBUG : x28 0000000000000004 x29 0000007f7df7e278 x30 0000007f844531b0 10-15 13:54:54.567 23570 23570 F DEBUG : sp 0000007f7df7d250 pc 0000007f8445326c pstate 0000000080000000 10-15 13:54:54.567 23570 23570 F DEBUG : 10-15 13:54:54.567 23570 23570 F DEBUG : backtrace: 10-15 13:54:54.567 23570 23570 F DEBUG : #00 pc 00000000002ae26c /data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr 10-15 13:54:54.567 23570 23570 F DEBUG : #01 pc 00000000002ae1ac /data/data/com.akka.akkamark/app_flutter/isolate_snapshot_instr </code></pre></div> <p dir="auto">I've tested with several devices, from android 6.0 to android 8.1 and I have the same problem. This logcat is with a device with android 7.1.2.</p> <p dir="auto">I am not sure if it is a flutter bug or maybe the problem is with <code class="notranslate">image</code> pugglin and also I am not sure if I am doing something wrong, I followed all the steps that are in flutter web page to generate the release apk. Any clue?</p> <p dir="auto">Thanks in advance!</p>
<p dir="auto">I'm developing these features for a flutter app: loading an image from gallery, resize and save it.</p> <p dir="auto">The resizing part is a cpu intensive operation so I followed the approach suggested <a href="https://github.com/brendan-duncan/image/wiki/Examples">here</a> using isolate to gain a better user experience.</p> <p dir="auto">When I run the code in debug mode I have no issue, but when I try the same code in release mode my image is saved in a <a href="https://github.com/KiraDiShira/flutterRedux/blob/master/lib/src/localizations/profile.png">wrong way</a>:</p> <p dir="auto">Here is the code to replicate the problem. This is a new flutter project with the following files:</p> <p dir="auto">In <code class="notranslate">pubspec.yaml</code> I add this section:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: path_provider: ^0.4.1 image_picker: ^0.4.10 image: ^2.0.4 flutter: sdk: flutter"><pre class="notranslate"><code class="notranslate">dependencies: path_provider: ^0.4.1 image_picker: ^0.4.10 image: ^2.0.4 flutter: sdk: flutter </code></pre></div> <p dir="auto">All code is in <code class="notranslate">lib/main.dart</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'dart:async'; import 'dart:io'; import 'dart:isolate'; import 'package:flutter/material.dart'; import 'package:image/image.dart'; import 'package:image_picker/image_picker.dart'; import 'package:path_provider/path_provider.dart'; import 'package:path/path.dart' as p; void main() =&gt; runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new MyHomePage(), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key}) : super(key: key); @override _MyHomePageState createState() =&gt; new _MyHomePageState(); } class _MyHomePageState extends State&lt;MyHomePage&gt; { int _counter = 0; File _file; Future&lt;File&gt; _getImage() async { File image = await ImagePicker.pickImage(source: ImageSource.gallery); if (image != null) { return image; } return null; } static decode(DecodeParam param) async { var p = await param.file.readAsBytes(); var image = decodeImage(p); var thumbnail = copyResize(image, 120); param.sendPort.send(thumbnail); } void _displayImage() async { setState(() { _file = null; }); File file = await _getImage(); ReceivePort receivePort = new ReceivePort(); await Isolate.spawn(decode, new DecodeParam(file, receivePort.sendPort)); var image = await receivePort.first; Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; File profilePictureFile = File(p.join(tempPath, 'thumbnail' + _counter.toString() + '.png')) ..writeAsBytesSync(encodePng(image)); setState(() { _counter++; _file = profilePictureFile; }); } @override Widget build(BuildContext context) { return new Scaffold( body: new Center( child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: &lt;Widget&gt;[ _file != null ? Container( height: 200.0, width: 200.0, decoration: BoxDecoration( shape: BoxShape.circle, image: DecorationImage( fit: BoxFit.fitWidth, image: FileImage(_file)))) : Container(), ], ), ), floatingActionButton: new FloatingActionButton( onPressed: _displayImage, child: new Icon(Icons.add), ), ); } } class DecodeParam { final File file; final SendPort sendPort; DecodeParam(this.file, this.sendPort); }"><pre class="notranslate"><code class="notranslate">import 'dart:async'; import 'dart:io'; import 'dart:isolate'; import 'package:flutter/material.dart'; import 'package:image/image.dart'; import 'package:image_picker/image_picker.dart'; import 'package:path_provider/path_provider.dart'; import 'package:path/path.dart' as p; void main() =&gt; runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new MyHomePage(), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key}) : super(key: key); @override _MyHomePageState createState() =&gt; new _MyHomePageState(); } class _MyHomePageState extends State&lt;MyHomePage&gt; { int _counter = 0; File _file; Future&lt;File&gt; _getImage() async { File image = await ImagePicker.pickImage(source: ImageSource.gallery); if (image != null) { return image; } return null; } static decode(DecodeParam param) async { var p = await param.file.readAsBytes(); var image = decodeImage(p); var thumbnail = copyResize(image, 120); param.sendPort.send(thumbnail); } void _displayImage() async { setState(() { _file = null; }); File file = await _getImage(); ReceivePort receivePort = new ReceivePort(); await Isolate.spawn(decode, new DecodeParam(file, receivePort.sendPort)); var image = await receivePort.first; Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; File profilePictureFile = File(p.join(tempPath, 'thumbnail' + _counter.toString() + '.png')) ..writeAsBytesSync(encodePng(image)); setState(() { _counter++; _file = profilePictureFile; }); } @override Widget build(BuildContext context) { return new Scaffold( body: new Center( child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: &lt;Widget&gt;[ _file != null ? Container( height: 200.0, width: 200.0, decoration: BoxDecoration( shape: BoxShape.circle, image: DecorationImage( fit: BoxFit.fitWidth, image: FileImage(_file)))) : Container(), ], ), ), floatingActionButton: new FloatingActionButton( onPressed: _displayImage, child: new Icon(Icons.add), ), ); } } class DecodeParam { final File file; final SendPort sendPort; DecodeParam(this.file, this.sendPort); } </code></pre></div> <p dir="auto"><code class="notranslate">flutter doctor -v</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel master, v0.9.7-pre.61, on Microsoft Windows [Versione 10.0.15063], locale it-IT) • Flutter version 0.9.7-pre.61 at C:\src\flutter • Framework revision 2d81adf74c (2 days ago), 2018-10-05 22:29:37 -0700 • Engine revision 572fa5646a • Dart version 2.1.0-dev.6.0.flutter-c6254163dc [√] Android toolchain - develop for Android devices (Android SDK 28.0.1) • Android SDK at d:\Profiles\alarosa\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.1 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) • All Android licenses accepted. [√] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 26.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [!] IntelliJ IDEA Community Edition (version 2018.1) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1 X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [√] VS Code (version 1.27.2) • VS Code at d:\Profiles\alarosa\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 2.19.0 [√] VS Code, 64-bit edition (version 1.27.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 2.19.0 [√] Connected device (1 available) • HUAWEI VNS L31 • 4TE0216A14001341 • android-arm64 • Android 7.0 (API 24) ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel master, v0.9.7-pre.61, on Microsoft Windows [Versione 10.0.15063], locale it-IT) • Flutter version 0.9.7-pre.61 at C:\src\flutter • Framework revision 2d81adf74c (2 days ago), 2018-10-05 22:29:37 -0700 • Engine revision 572fa5646a • Dart version 2.1.0-dev.6.0.flutter-c6254163dc [√] Android toolchain - develop for Android devices (Android SDK 28.0.1) • Android SDK at d:\Profiles\alarosa\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.1 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) • All Android licenses accepted. [√] Android Studio (version 3.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 26.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02) [!] IntelliJ IDEA Community Edition (version 2018.1) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1 X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [√] VS Code (version 1.27.2) • VS Code at d:\Profiles\alarosa\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 2.19.0 [√] VS Code, 64-bit edition (version 1.27.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 2.19.0 [√] Connected device (1 available) • HUAWEI VNS L31 • 4TE0216A14001341 • android-arm64 • Android 7.0 (API 24) ! Doctor found issues in 1 category. </code></pre></div> <p dir="auto">Thank you.</p>
1
<p dir="auto"><strong>repro:</strong></p> <ol dir="auto"> <li>clean checkout at master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/2c9e051c460dd9700e6814c8e49cc1f119ed8b41/hovercard" href="https://github.com/JuliaLang/julia/commit/2c9e051c460dd9700e6814c8e49cc1f119ed8b41"><tt>2c9e051</tt></a>)</li> <li><code class="notranslate">make</code></li> </ol> <p dir="auto"><strong>expected:</strong></p> <p dir="auto">successful build</p> <p dir="auto"><strong>actual:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... LibCURL ────────── 0.361519 seconds Downloads ──────── 0.605942 seconds Pkg ────────────── 3.760104 seconds LazyArtifacts ──── 0.002615 seconds Stdlibs total ──── 30.568599 seconds Sysimage built. Summary: Total ─────── 51.765127 seconds Base: ─────── 21.193995 seconds 40.9426% Stdlibs: ──── 30.568599 seconds 59.0525% JULIA usr/lib/julia/sys-o.a /bin/sh: line 1: 62349 Segmentation fault: 11 JULIA_BINDIR=/Users/vilterp/code/j-test/julia/usr/bin WINEPATH=&quot;/Users/vilterp/code/j-test/julia/usr/bin;$WINEPATH&quot; /Users/vilterp/code/j-test/julia/usr/bin/julia -O3 -C &quot;native&quot; --output-o /Users/vilterp/code/j-test/julia/usr/lib/julia/sys-o.a.tmp --startup-file=no --warn-overwrite=yes --sysimage /Users/vilterp/code/j-test/julia/usr/lib/julia/sys.ji /Users/vilterp/code/j-test/julia/contrib/generate_precompile.jl 1 *** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. *** make[1]: *** [/Users/vilterp/code/j-test/julia/usr/lib/julia/sys-o.a] Error 1 make: *** [julia-sysimg-release] Error 2"><pre class="notranslate"><code class="notranslate">... LibCURL ────────── 0.361519 seconds Downloads ──────── 0.605942 seconds Pkg ────────────── 3.760104 seconds LazyArtifacts ──── 0.002615 seconds Stdlibs total ──── 30.568599 seconds Sysimage built. Summary: Total ─────── 51.765127 seconds Base: ─────── 21.193995 seconds 40.9426% Stdlibs: ──── 30.568599 seconds 59.0525% JULIA usr/lib/julia/sys-o.a /bin/sh: line 1: 62349 Segmentation fault: 11 JULIA_BINDIR=/Users/vilterp/code/j-test/julia/usr/bin WINEPATH="/Users/vilterp/code/j-test/julia/usr/bin;$WINEPATH" /Users/vilterp/code/j-test/julia/usr/bin/julia -O3 -C "native" --output-o /Users/vilterp/code/j-test/julia/usr/lib/julia/sys-o.a.tmp --startup-file=no --warn-overwrite=yes --sysimage /Users/vilterp/code/j-test/julia/usr/lib/julia/sys.ji /Users/vilterp/code/j-test/julia/contrib/generate_precompile.jl 1 *** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. *** make[1]: *** [/Users/vilterp/code/j-test/julia/usr/lib/julia/sys-o.a] Error 1 make: *** [julia-sysimg-release] Error 2 </code></pre></div> <p dir="auto"><strong>context</strong></p> <ul dir="auto"> <li>macOS: 11.5.2. intel x64</li> <li>clang:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="clang -v Apple clang version 13.0.0 (clang-1300.0.29.3) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"><pre class="notranslate"><code class="notranslate">clang -v Apple clang version 13.0.0 (clang-1300.0.29.3) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin </code></pre></div>
<p dir="auto">I've addressed this feature multiple times, but never really got feedback on it, so I decided to open an issue for it, as I keep coming back to it as a very elegant solution to many problems.<br> I hope you can answer at least, how feasible this is, what needs to be done for it (so that I can maybe implement it myself, if no one has the time), or explain me why this is a silly idea.</p> <h5 dir="auto">What I want:</h5> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Introducing a new type, in a typealias like fashion. # first syntax idea hardtypealias RGB{T &lt;: FloatingPoint} NTuple{3, T} # second syntax idea immutable Meter{T &lt;: Real} &lt;: T # third syntax idea concrete FixedMatrix{T, M, N} &lt;: NTuple{NTuple{M, T}, N} # in constrast to abstract"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Introducing a new type, in a typealias like fashion.</span> <span class="pl-c"><span class="pl-c">#</span> first syntax idea</span> hardtypealias RGB{T <span class="pl-k">&lt;:</span> <span class="pl-c1">FloatingPoint</span>} NTuple{<span class="pl-c1">3</span>, T} <span class="pl-c"><span class="pl-c">#</span> second syntax idea</span> immutable Meter{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> <span class="pl-c"><span class="pl-c">#</span> third syntax idea</span> concrete FixedMatrix{T, M, N} <span class="pl-k">&lt;:</span> <span class="pl-c1">NTuple{NTuple{M, T}, N}</span> <span class="pl-c"><span class="pl-c">#</span> in constrast to abstract</span></pre></div> <p dir="auto">Intended semantic: The first type (e.g. RGB) is a either subtype of the second (e.g NTuple), or has the type Union(RGB, NTuple).<br> I'm not sure what makes more sense. But it should solve the following problem:</p> <blockquote> <p dir="auto">There is an already existing type and one wants to add functions to it, without adding them to the original type.</p> </blockquote> <p dir="auto">This behavior is wanted in a myriad of cases and I've seen workarounds for this situation in many packages (including mine).</p> <h3 dir="auto">Examples</h3> <p dir="auto">A few examples, which can be elegantly implemented with this feature, which assume, that NTuple implements common, simd accelerated, vector operations</p> <h4 dir="auto">Adding functions to an existing type:</h4> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# under the assumption, that NTuple implements common vector operations immutable RGB{T} &lt;: NTuple{3, T} # under the assumption, that getfield can be extended Base.getfield(c::RGB, ::Field{:r}) = c[1] Base.getfield(c::RGB, ::Field{:g}) = c[2] Base.getfield(c::RGB, ::Field{:b}) = c[3] # which gives you the access to RGB which you'd expect from it. # could also be implemented with a macro: @accessors RGB :r =&gt; 1, :g =&gt; 2, :b =&gt; 3 # So this works: a = RGB(0.1,0.2,0.3) a+a # is implemented by NTuple a.r # implemented by RGB #Should not work: (1,2,3).r"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> under the assumption, that NTuple implements common vector operations</span> immutable RGB{T} <span class="pl-k">&lt;:</span> <span class="pl-c1">NTuple{3, T}</span> <span class="pl-c"><span class="pl-c">#</span> under the assumption, that getfield can be extended</span> Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(c<span class="pl-k">::</span><span class="pl-c1">RGB</span>, <span class="pl-k">::</span><span class="pl-c1">Field{:r}</span>) <span class="pl-k">=</span> c[<span class="pl-c1">1</span>] Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(c<span class="pl-k">::</span><span class="pl-c1">RGB</span>, <span class="pl-k">::</span><span class="pl-c1">Field{:g}</span>) <span class="pl-k">=</span> c[<span class="pl-c1">2</span>] Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(c<span class="pl-k">::</span><span class="pl-c1">RGB</span>, <span class="pl-k">::</span><span class="pl-c1">Field{:b}</span>) <span class="pl-k">=</span> c[<span class="pl-c1">3</span>] <span class="pl-c"><span class="pl-c">#</span> which gives you the access to RGB which you'd expect from it.</span> <span class="pl-c"><span class="pl-c">#</span> could also be implemented with a macro: @accessors RGB :r =&gt; 1, :g =&gt; 2, :b =&gt; 3 </span> <span class="pl-c"><span class="pl-c">#</span> So this works:</span> a <span class="pl-k">=</span> <span class="pl-c1">RGB</span>(<span class="pl-c1">0.1</span>,<span class="pl-c1">0.2</span>,<span class="pl-c1">0.3</span>) a<span class="pl-k">+</span>a <span class="pl-c"><span class="pl-c">#</span> is implemented by NTuple</span> a<span class="pl-k">.</span>r <span class="pl-c"><span class="pl-c">#</span> implemented by RGB</span> <span class="pl-c"><span class="pl-c">#</span>Should not work:</span> (<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>)<span class="pl-k">.</span>r</pre></div> <p dir="auto">To further dwell on the point, that we can have a diversity of simd accelerated Vector types, with minimal re-implementation of common functionality, here is another example:</p> <h4 dir="auto">Adding Semantic to generic Types</h4> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="immutable Point{T, N} &lt;: NTuple{N, T} immutable RGB{T, N} &lt;: NTuple{N, T} immutable Red{T &lt;: Real} &lt;: T immutable Green{T &lt;: Real} &lt;: T immutable Blue{T &lt;: Real} &lt;: T red = Red(1f0) # -&gt; this will behave exactly like a normal Float32 value # making it unnecessary, to re-implement all the operations on it immutable X{T &lt;: Real} &lt;: T immutable Y{T &lt;: Real} &lt;: T immutable Z{T &lt;: Real} &lt;: T Base.getfield(c::RGB, field::Type{Red}) = Red(c[1]) ... Base.getfield(p::Point, field::Type{X}) = X(p[1]) ... Base.getfield(p::Matrix{RGB}, field::Type{Red}) = ... # -&gt; Matrix{Red} Base.getfield(p::Matrix{Point}, field::Type{X}) = ... # -&gt; Matrix{X} ... image = [RGB(1f0, 0f0,0f0) for i=1:512, j=1:512] points = [Point(1f0, 0f0,0f0) for i=1:512, j=1:512] redchannel = image.Red zplane = image.Z"><pre class="notranslate">immutable Point{T, N} <span class="pl-k">&lt;:</span> <span class="pl-c1">NTuple{N, T}</span> immutable RGB{T, N} <span class="pl-k">&lt;:</span> <span class="pl-c1">NTuple{N, T}</span> immutable Red{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> immutable Green{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> immutable Blue{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> red <span class="pl-k">=</span> <span class="pl-c1">Red</span>(<span class="pl-c1">1f0</span>) <span class="pl-c"><span class="pl-c">#</span> -&gt; this will behave exactly like a normal Float32 value </span> <span class="pl-c"><span class="pl-c">#</span> making it unnecessary, to re-implement all the operations on it</span> immutable X{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> immutable Y{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> immutable Z{T <span class="pl-k">&lt;:</span> <span class="pl-c1">Real</span>} <span class="pl-k">&lt;:</span> <span class="pl-c1">T</span> Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(c<span class="pl-k">::</span><span class="pl-c1">RGB</span>, field<span class="pl-k">::</span><span class="pl-c1">Type{Red}</span>) <span class="pl-k">=</span> <span class="pl-c1">Red</span>(c[<span class="pl-c1">1</span>]) <span class="pl-k">...</span> Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(p<span class="pl-k">::</span><span class="pl-c1">Point</span>, field<span class="pl-k">::</span><span class="pl-c1">Type{X}</span>) <span class="pl-k">=</span> <span class="pl-c1">X</span>(p[<span class="pl-c1">1</span>]) <span class="pl-k">...</span> Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(p<span class="pl-k">::</span><span class="pl-c1">Matrix{RGB}</span>, field<span class="pl-k">::</span><span class="pl-c1">Type{Red}</span>) <span class="pl-k">=</span> <span class="pl-k">...</span> <span class="pl-c"><span class="pl-c">#</span> -&gt; Matrix{Red}</span> Base<span class="pl-k">.</span><span class="pl-en">getfield</span>(p<span class="pl-k">::</span><span class="pl-c1">Matrix{Point}</span>, field<span class="pl-k">::</span><span class="pl-c1">Type{X}</span>) <span class="pl-k">=</span> <span class="pl-k">...</span> <span class="pl-c"><span class="pl-c">#</span> -&gt; Matrix{X}</span> <span class="pl-k">...</span> image <span class="pl-k">=</span> [<span class="pl-c1">RGB</span>(<span class="pl-c1">1f0</span>, <span class="pl-c1">0f0</span>,<span class="pl-c1">0f0</span>) <span class="pl-k">for</span> i<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">512</span>, j<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">512</span>] points <span class="pl-k">=</span> [<span class="pl-c1">Point</span>(<span class="pl-c1">1f0</span>, <span class="pl-c1">0f0</span>,<span class="pl-c1">0f0</span>) <span class="pl-k">for</span> i<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">512</span>, j<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">512</span>] redchannel <span class="pl-k">=</span> image<span class="pl-k">.</span>Red zplane <span class="pl-k">=</span> image<span class="pl-k">.</span>Z</pre></div> <h6 dir="auto">Now the big magic, won by more type information</h6> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="visualize(image) # -&gt; rgb image display visualize(points) # -&gt; point cloud visualize(redchannel) # I can actually infer what the user wants to see: a red intensity image visualize(zplane) # Again, it's relatively clear what is expected here: a heightfield"><pre class="notranslate"><span class="pl-c1">visualize</span>(image) <span class="pl-c"><span class="pl-c">#</span> -&gt; rgb image display</span> <span class="pl-c1">visualize</span>(points) <span class="pl-c"><span class="pl-c">#</span> -&gt; point cloud </span> <span class="pl-c1">visualize</span>(redchannel) <span class="pl-c"><span class="pl-c">#</span> I can actually infer what the user wants to see: a red intensity image</span> <span class="pl-c1">visualize</span>(zplane) <span class="pl-c"><span class="pl-c">#</span> Again, it's relatively clear what is expected here: a heightfield</span></pre></div> <p dir="auto">This would be pretty much the paradise for any visualization library. Also, visual debugging is made a lot easier, as the debugger doesn't need any magic to infer how it needs to visualize some random variable.<br> But this matters for more than that, as it becomes easier to do the correct thing with any value.<br> I you want to see something else, for example the pixel of the image in RGB space, you can simply reinterpret the RGB to Point (which has O(1)), which can be useful to make out color clusters.</p> <h4 dir="auto">Let function bodies only do, what is implied by their function name</h4> <p dir="auto">Compare these two implementations:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#First implementation of matrix multiplication function (*)(a::Matrix, b::Matrix) @assert size(a, 2) == size(b, 1) #This isn't part of the multiplication code #matrix multiplication code end # This is probably a matter of taste, but I like this implementation more: FixedSizeArray{SZ, T, N} &lt;: Array{T,N} Base.call{T,N}(::Type{FixedSizeArray}, x::Array{T,N}) = FixedSizeArray{size(x), T,N}(x) function (*)(a::Matrix, b::Matrix) return (FixedSizeArray(a) * FixedSizeArray(b)) end # Like this, in the function body is only, what is really part of the matrix multiplication: function (*)(a::FixedMatrix{T, N, M}, b::FixedMatrix{T, M, P}) # code for multiplication of matrices with well suited dimensions end function (*)(a::FixedMatrix, b::FixedMatrix) # code for multiplication of matrices with arbitrary dimensions # which usually throws an error end"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>First implementation of matrix multiplication</span> <span class="pl-k">function</span> (<span class="pl-k">*</span>)(a<span class="pl-k">::</span><span class="pl-c1">Matrix</span>, b<span class="pl-k">::</span><span class="pl-c1">Matrix</span>) <span class="pl-c1">@assert</span> <span class="pl-c1">size</span>(a, <span class="pl-c1">2</span>) <span class="pl-k">==</span> <span class="pl-c1">size</span>(b, <span class="pl-c1">1</span>) <span class="pl-c"><span class="pl-c">#</span>This isn't part of the multiplication code</span> <span class="pl-c"><span class="pl-c">#</span>matrix multiplication code</span> <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> This is probably a matter of taste, but I like this implementation more:</span> FixedSizeArray{SZ, T, N} <span class="pl-k">&lt;:</span> <span class="pl-c1">Array{T,N}</span> Base<span class="pl-k">.</span><span class="pl-en">call</span><span class="pl-c1">{T,N}</span>(<span class="pl-k">::</span><span class="pl-c1">Type{FixedSizeArray}</span>, x<span class="pl-k">::</span><span class="pl-c1">Array{T,N}</span>) <span class="pl-k">=</span> <span class="pl-c1">FixedSizeArray</span><span class="pl-c1">{size(x), T,N}</span>(x) <span class="pl-k">function</span> (<span class="pl-k">*</span>)(a<span class="pl-k">::</span><span class="pl-c1">Matrix</span>, b<span class="pl-k">::</span><span class="pl-c1">Matrix</span>) <span class="pl-k">return</span> (<span class="pl-c1">FixedSizeArray</span>(a) <span class="pl-k">*</span> <span class="pl-c1">FixedSizeArray</span>(b)) <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> Like this, in the function body is only, what is really part of the matrix multiplication:</span> <span class="pl-k">function</span> (<span class="pl-k">*</span>)(a<span class="pl-k">::</span><span class="pl-c1">FixedMatrix{T, N, M}</span>, b<span class="pl-k">::</span><span class="pl-c1">FixedMatrix{T, M, P}</span>) <span class="pl-c"><span class="pl-c">#</span> code for multiplication of matrices with well suited dimensions</span> <span class="pl-k">end</span> <span class="pl-k">function</span> (<span class="pl-k">*</span>)(a<span class="pl-k">::</span><span class="pl-c1">FixedMatrix</span>, b<span class="pl-k">::</span><span class="pl-c1">FixedMatrix</span>) <span class="pl-c"><span class="pl-c">#</span> code for multiplication of matrices with arbitrary dimensions</span> <span class="pl-c"><span class="pl-c">#</span> which usually throws an error</span> <span class="pl-k">end</span></pre></div> <p dir="auto">This all is mostly graphic related, which isn't a big surprise considering my background. But I'm pretty sure, that there are good use cases for other fields ;)<br> But I better not iterate more use cases here, as this would turn even more into a novel.</p> <p dir="auto">Hope we can realize this in some way!</p> <p dir="auto">Best,<br> Simon</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">When I use ListItem with rootRef I get a Warning-Message in console in Chrome:</p> <p dir="auto">Warning: React does not recognize the <code class="notranslate">rootRef</code> prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase <code class="notranslate">rootref</code> instead. If you accidentally passed it from a parent component, remove it from the DOM element.</p> <p dir="auto">(i need rootRef because i want to show a popover on the listItem, and the listItem should be the anchorElement)</p> <p dir="auto">"material-ui": "1.0.0-beta.23"<br> "react": "16.2.0"</p> <p dir="auto">Chrome: Version 62.0.3202.94</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The same as <a href="https://material-ui-next.com/api/list-item-secondary-action/#listitemsecondaryaction" rel="nofollow">ListItemSecondaryAction</a></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">No (simple) ability to implement a secondary action</p> <h2 dir="auto">Context</h2> <p dir="auto">Some quick-access-like actions from expansion panel's head.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.30</td> </tr> <tr> <td>React</td> <td>16</td> </tr> </tbody> </table>
0
<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">Current Behavior</h3> <p dir="auto">Since NPM v7:</p> <p dir="auto">When installing a new dependency from a public repository (<code class="notranslate">github:foo/bar</code>), this creates a <code class="notranslate">git+ssh://git@github.com/foo/bar</code>) in the <code class="notranslate">package-lock.json</code>.</p> <p dir="auto">This breaks when running <code class="notranslate">npm ci</code> in a GitHub Action because it doesn't have the SSH agent configured. And it shouldn't need to, because the dependency is public.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Don't put <code class="notranslate">git+ssh</code> there but <code class="notranslate">github:</code>.</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto"><code class="notranslate">npm i github:foo/bar</code></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: macOS Big Sur</li> <li>Node 16</li> <li>npm v7.12.1</li> </ul>
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">When I use a git repository via an HTTP link NPM "takes liberties" with it, which breaks my build:</p> <div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm init -y Wrote to /Users/eugene.lazutkin/Work/temp/package.json: { &quot;name&quot;: &quot;temp&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;description&quot;: &quot;&quot;, &quot;main&quot;: &quot;index.js&quot;, &quot;scripts&quot;: { &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot; }, &quot;keywords&quot;: [], &quot;author&quot;: &quot;&quot;, &quot;license&quot;: &quot;ISC&quot; } $ npm i --save https://github.com/uhop/stream-chain.git added 1 package, and audited 2 packages in 3s found 0 vulnerabilities"><pre class="notranslate"><span class="pl-k">$</span> npm init -y Wrote to /Users/eugene.lazutkin/Work/temp/package.json: { "name": "temp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" &amp;&amp; exit 1" }, "keywords": [], "author": "", "license": "ISC" } <span class="pl-k">$</span> npm i --save https://github.com/uhop/stream-chain.git added 1 package, and audited 2 packages in 3s found 0 vulnerabilities</pre></div> <p dir="auto">It produces <code class="notranslate">package-lock.json</code>:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;temp&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;lockfileVersion&quot;: 2, &quot;requires&quot;: true, &quot;packages&quot;: { &quot;&quot;: { &quot;version&quot;: &quot;1.0.0&quot;, &quot;license&quot;: &quot;ISC&quot;, &quot;dependencies&quot;: { &quot;stream-chain&quot;: &quot;github:uhop/stream-chain&quot; } }, &quot;node_modules/stream-chain&quot;: { &quot;version&quot;: &quot;2.2.4&quot;, &quot;resolved&quot;: &quot;git+ssh://git@github.com/uhop/stream-chain.git#459f5a1708c138b6e0abaae4cf103c3488e1e78e&quot;, &quot;license&quot;: &quot;BSD-3-Clause&quot; } }, &quot;dependencies&quot;: { &quot;stream-chain&quot;: { &quot;version&quot;: &quot;git+ssh://git@github.com/uhop/stream-chain.git#459f5a1708c138b6e0abaae4cf103c3488e1e78e&quot;, &quot;from&quot;: &quot;stream-chain@github:uhop/stream-chain&quot; } } }"><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>temp<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"lockfileVersion"</span>: <span class="pl-c1">2</span>, <span class="pl-ent">"requires"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"packages"</span>: { <span class="pl-ent">""</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"stream-chain"</span>: <span class="pl-s"><span class="pl-pds">"</span>github:uhop/stream-chain<span class="pl-pds">"</span></span> } }, <span class="pl-ent">"node_modules/stream-chain"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.2.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"resolved"</span>: <span class="pl-s"><span class="pl-pds">"</span>git+ssh://git@github.com/uhop/stream-chain.git#459f5a1708c138b6e0abaae4cf103c3488e1e78e<span class="pl-pds">"</span></span>, <span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>BSD-3-Clause<span class="pl-pds">"</span></span> } }, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"stream-chain"</span>: { <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>git+ssh://git@github.com/uhop/stream-chain.git#459f5a1708c138b6e0abaae4cf103c3488e1e78e<span class="pl-pds">"</span></span>, <span class="pl-ent">"from"</span>: <span class="pl-s"><span class="pl-pds">"</span>stream-chain@github:uhop/stream-chain<span class="pl-pds">"</span></span> } } }</pre></div> <p dir="auto">Note that <code class="notranslate">https://github.com/uhop/stream-chain.git</code> was replaced with <code class="notranslate">github:uhop/stream-chain</code>, which is probably OK in this case. But other two links (?) are rewritten from <code class="notranslate">https://github.com/uhop/stream-chain.git</code> to <code class="notranslate">git+ssh://git@github.com/uhop/stream-chain.git</code>, which is clearly bad.</p> <p dir="auto">The problem is that a build bot we use in similar situations can access private git repositories using HTTP, but not SSH for security reasons. It fails on an authentication. Rewriting <code class="notranslate">https://github.com/uhop/stream-chain.git</code> to <code class="notranslate">git+ssh://git@github.com/uhop/stream-chain.git</code> is not acceptable for that reasons.</p> <p dir="auto">The fix is relatively minor yet unpleasant: we have to replace <code class="notranslate">npm ci</code> with <code class="notranslate">npm i</code>, which takes more time and introduced instabilities with other dependencies.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">When running <code class="notranslate">npm ci</code> it should use the original URL with the HTTP authentication instead of SSH.</p> <h3 dir="auto">Steps To Reproduce:</h3> <p dir="auto">See the description and do the same steps using git repositories (github only?) as dependencies.</p> <h3 dir="auto">Environment:</h3> <p dir="auto">OS: Mac<br> Node: 15.7.0<br> NPM: 7.4.3</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 crashes php server without providing any error log.<br> The server log provides me with the following information:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [OK] Server listening on http://127.0.0.1:8000 // Quit the server with CONTROL-C. PHP 7.2.12 Development Server started at Wed Nov 28 15:20:14 2018 Listening on http://127.0.0.1:8000 Document root is /Users/christianbieg/Documents/Websites/symfony-test/public Press Ctrl-C to quit. [ERROR] The process has been signaled with signal &quot;11&quot;. "><pre class="notranslate"><code class="notranslate"> [OK] Server listening on http://127.0.0.1:8000 // Quit the server with CONTROL-C. PHP 7.2.12 Development Server started at Wed Nov 28 15:20:14 2018 Listening on http://127.0.0.1:8000 Document root is /Users/christianbieg/Documents/Websites/symfony-test/public Press Ctrl-C to quit. [ERROR] The process has been signaled with signal "11". </code></pre></div> <p dir="auto"><strong>How to reproduce</strong></p> <p dir="auto"><code class="notranslate">composer create-project symfony/website-skeleton symfony-test &amp;&amp; cd symfony-test</code><br> <code class="notranslate">php bin/console server:run</code></p> <p dir="auto">and then open the website on <a href="http://localhost:8000" rel="nofollow">http://localhost:8000</a></p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.8</p> <p dir="auto"><strong>Description</strong><br> <code class="notranslate">(in built in server)[ERROR] The process has been signaled with signal "11".</code></p> <p dir="auto"><strong>How to reproduce</strong><br> In any new project, if you clone <code class="notranslate">symfony/website-skeleton</code> run built-in server</p> <p dir="auto"><strong>Additional context</strong><br> I think it has a relationship with latest [Routing] fixes <code class="notranslate">@Route</code></p>
1
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157397310" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/6497" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/6497/hovercard" href="https://github.com/matplotlib/matplotlib/pull/6497">#6497</a> (checked by bisection) let to pick events reporting incorrect events for step plots.</p> <p dir="auto">MWE:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from pylab import * plot(rand(100), picker=5, drawstyle=&quot;steps-pre&quot;) # 5 points tolerance def on_pick(event): print(event.ind) cid = gcf().canvas.mpl_connect('pick_event', on_pick) show()"><pre class="notranslate"><code class="notranslate">from pylab import * plot(rand(100), picker=5, drawstyle="steps-pre") # 5 points tolerance def on_pick(event): print(event.ind) cid = gcf().canvas.mpl_connect('pick_event', on_pick) show() </code></pre></div> <p dir="auto">On 1.5.1, clicking on the "right" part of the plot reports an index close to 100 (that is, the number of points). On master, the index is instead close to 200 (because each point is "duplicated" in the path).</p> <p dir="auto">While the previous behavior could "easily" be restored, it may be a good time to revisit what the "index" returned by <code class="notranslate">Line2D.contains</code> actually means. Specifically:</p> <ul dir="auto"> <li>For non-step plots, I think the indices should actually be floats, that indicate where between which two points the projection of the click onto the line falls (for each line for which the projection is close enough), and how close to each extremity of the segment. (This would be only a minor backwards incompatibility if the returned index is used, well, to index the data: recent numpys would emit a warning about indexing with a float.)</li> <li>For step plots, it is less clear what the correct solution is. Perhaps keeping the status quo and returning the index of the preceding point(s) would be enough.</li> </ul>
<p dir="auto">The weekly build with nightly wheels from numpy and pandas<br> has failed. Check the logs for any updates that need to be<br> made in matplotlib.<br> <a href="https://github.com/matplotlib/matplotlib/actions/runs/2175468878">https://github.com/matplotlib/matplotlib/actions/runs/2175468878</a></p>
0
<p dir="auto">Hi there!</p> <p dir="auto">I am using an anaconda 4.3.18 64 bits installation on windows 7. the version of python is 3.6.1 and numpy version is 1.12.1</p> <p dir="auto">I imported an ascii file, and ran these commands:<br> import numpy as np</p> <h1 dir="auto">read the ascii file into attribute variable</h1> <p dir="auto">sorted_items= np.sort(attribute, axis=0)<br> sorted_ids= np.argsort(attribute,axis=0)</p> <p dir="auto">Then, I exported sorted_items and sorted_ids to an ASCII file.</p> <p dir="auto">Thereafter, I imported the same file in Octave version 4.2.0 64 bits and ran this command:<br> [sorted_items,sorted_ids]= sort(attribute)</p> <p dir="auto">Also, I exported the outputs to an ASCII file.</p> <p dir="auto">When I compared these outputs, I noticed the following:</p> <ul dir="auto"> <li>The sorted values in Python match those in Octave</li> <li>The sorted index show issues. The index reported by numpy are different to those reported by Octave in many places (see the excell spreadsheet, rows with blue background)</li> <li>The sorted index show some good matches. A good index match is when the Octave index is one value higher than the one for Python (because Octave starts counting from 1, instead of 0 for Python)</li> </ul> <p dir="auto">I attached to this issue two files: the excell spreadsheet, and the text file containing the data used to report this issue.</p> <p dir="auto">Many thanks,<br> Ivan<br> <a href="https://github.com/numpy/numpy/files/1145419/Data.zip">Data.zip</a></p>
<h3 dir="auto">Describe the issue:</h3> <h3 dir="auto">Describe your issue.</h3> <p dir="auto">From the attached CSV file, <a href="https://github.com/scipy/scipy/files/11653905/input_data.csv">input_data.csv</a>, I import the, say, <code class="notranslate">test_list</code>. Then, I create a <code class="notranslate">pd.Dataframe</code> to store my data in <code class="notranslate">test_df</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy import fft import numpy as np test_df = pd.DataFrame(index=range(len(test_list)), columns=['test']) test_df['test'] = test_list"><pre class="notranslate"><code class="notranslate">from scipy import fft import numpy as np test_df = pd.DataFrame(index=range(len(test_list)), columns=['test']) test_df['test'] = test_list </code></pre></div> <p dir="auto">I want to calculate the FFT transform of the signal in <code class="notranslate">test_df['test']</code>. However, I get different results when I pass as input different types of arguments to the <code class="notranslate">scipy.fft.fft()</code>.</p> <p dir="auto">Once I pass the signal as a nympy.array I get the plot <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="317838" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/1/hovercard" href="https://github.com/numpy/numpy/pull/1">#1</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/88409436/243393150-7cab8d6a-45e1-4e7f-a377-2d601b84c40b.png"><img src="https://user-images.githubusercontent.com/88409436/243393150-7cab8d6a-45e1-4e7f-a377-2d601b84c40b.png" alt="dummy" style="max-width: 100%;"></a></p> <p dir="auto">Once I pass the signal as a pd.Dataframe I get the plot <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="365753" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/2/hovercard" href="https://github.com/numpy/numpy/pull/2">#2</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/88409436/243393235-41fb7740-5c23-4d59-b0f4-a7c5f20ac42c.png"><img src="https://user-images.githubusercontent.com/88409436/243393235-41fb7740-5c23-4d59-b0f4-a7c5f20ac42c.png" alt="dummy" style="max-width: 100%;"></a></p> <p dir="auto">Both inputs, np.array and pd.DataFrame contain the same information.</p> <p dir="auto">From the problem definition the plot#2 seems to have a better physical interpretation.<br> However, it is not clear why I get different results.</p> <p dir="auto">May be it is a bug?</p> <p dir="auto">The code I use is below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy import fft import numpy as np test_df = pd.DataFrame(index=range(len(test_list)), columns=['test']) test_df['test'] = test_list ########## PLOT 1: from Numpy ############## to_np = test_df['test'].to_numpy() print(to_np) fft_output = fft.fft(to_np) power = np.abs(fft_output) freq = numpy.fft.fftfreq(len(to_np)) mask = freq &gt;= 0 freq = freq[mask] power = power[mask] plt.plot(freq, power) plt.show() ########## PLOT 2: from pd.DataFrame ############## to_df = test_df['test'].to_frame() print(to_df) fft_output = numpy.fft.fft(to_df) power = np.abs(fft_output) freq = fft.fftfreq(len(to_df)) mask = freq &gt;= 0 freq = freq[mask] power = power[mask] plt.plot(freq, power) plt.show() "><pre class="notranslate"><code class="notranslate">from scipy import fft import numpy as np test_df = pd.DataFrame(index=range(len(test_list)), columns=['test']) test_df['test'] = test_list ########## PLOT 1: from Numpy ############## to_np = test_df['test'].to_numpy() print(to_np) fft_output = fft.fft(to_np) power = np.abs(fft_output) freq = numpy.fft.fftfreq(len(to_np)) mask = freq &gt;= 0 freq = freq[mask] power = power[mask] plt.plot(freq, power) plt.show() ########## PLOT 2: from pd.DataFrame ############## to_df = test_df['test'].to_frame() print(to_df) fft_output = numpy.fft.fft(to_df) power = np.abs(fft_output) freq = fft.fftfreq(len(to_df)) mask = freq &gt;= 0 freq = freq[mask] power = power[mask] plt.plot(freq, power) plt.show() </code></pre></div> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from scipy import fft import numpy as np test_df = pd.DataFrame(index=range(len(test_list)), columns=['test']) test_df['test'] = test_list ########## PLOT 1: from Numpy ############## to_np = test_df['test'].to_numpy() print(to_np) fft_output = fft.fft(to_np) power = np.abs(fft_output) freq = numpy.fft.fftfreq(len(to_np)) mask = freq &gt;= 0 freq = freq[mask] power = power[mask] plt.plot(freq, power) plt.show() ########## PLOT 2: from pd.DataFrame ############## to_df = test_df['test'].to_frame() print(to_df) fft_output = numpy.fft.fft(to_df) power = np.abs(fft_output) freq = fft.fftfreq(len(to_df)) mask = freq &gt;= 0 freq = freq[mask] power = power[mask] plt.plot(freq, power) plt.show()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scipy</span> <span class="pl-k">import</span> <span class="pl-s1">fft</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-s1">test_df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">test_list</span>)), <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'test'</span>]) <span class="pl-s1">test_df</span>[<span class="pl-s">'test'</span>] <span class="pl-c1">=</span> <span class="pl-s1">test_list</span> <span class="pl-c">########## PLOT 1: from Numpy ##############</span> <span class="pl-s1">to_np</span> <span class="pl-c1">=</span> <span class="pl-s1">test_df</span>[<span class="pl-s">'test'</span>].<span class="pl-en">to_numpy</span>() <span class="pl-en">print</span>(<span class="pl-s1">to_np</span>) <span class="pl-s1">fft_output</span> <span class="pl-c1">=</span> <span class="pl-s1">fft</span>.<span class="pl-en">fft</span>(<span class="pl-s1">to_np</span>) <span class="pl-s1">power</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">abs</span>(<span class="pl-s1">fft_output</span>) <span class="pl-s1">freq</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">fft</span>.<span class="pl-en">fftfreq</span>(<span class="pl-en">len</span>(<span class="pl-s1">to_np</span>)) <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">freq</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">0</span> <span class="pl-s1">freq</span> <span class="pl-c1">=</span> <span class="pl-s1">freq</span>[<span class="pl-s1">mask</span>] <span class="pl-s1">power</span> <span class="pl-c1">=</span> <span class="pl-s1">power</span>[<span class="pl-s1">mask</span>] <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">freq</span>, <span class="pl-s1">power</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>() <span class="pl-c">########## PLOT 2: from pd.DataFrame ##############</span> <span class="pl-s1">to_df</span> <span class="pl-c1">=</span> <span class="pl-s1">test_df</span>[<span class="pl-s">'test'</span>].<span class="pl-en">to_frame</span>() <span class="pl-en">print</span>(<span class="pl-s1">to_df</span>) <span class="pl-s1">fft_output</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">fft</span>.<span class="pl-en">fft</span>(<span class="pl-s1">to_df</span>) <span class="pl-s1">power</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">abs</span>(<span class="pl-s1">fft_output</span>) <span class="pl-s1">freq</span> <span class="pl-c1">=</span> <span class="pl-s1">fft</span>.<span class="pl-en">fftfreq</span>(<span class="pl-en">len</span>(<span class="pl-s1">to_df</span>)) <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">freq</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">0</span> <span class="pl-s1">freq</span> <span class="pl-c1">=</span> <span class="pl-s1">freq</span>[<span class="pl-s1">mask</span>] <span class="pl-s1">power</span> <span class="pl-c1">=</span> <span class="pl-s1">power</span>[<span class="pl-s1">mask</span>] <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">freq</span>, <span class="pl-s1">power</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Runtime information:</h3> <p dir="auto">1.23.5<br> 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:38:11)<br> [Clang 14.0.6 ]</p> <h3 dir="auto">Context for the issue:</h3> <p dir="auto"><em>No response</em></p>
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> <code class="notranslate">TypeError: values.map is not a function at SelectMultipleControlValueAccessor.writeValue (forms.umd.min.js:13) at setUpControl (forms.umd.min.js:13) at FormControlDirective.ngOnChanges (forms.umd.min.js:15) at DebugAppView._View_ApiAccessEditorComponent0.detectChangesInternal (ApiAccessEditorComponent.ngfactory.js:472) at DebugAppView.AppView.detectChanges (core.umd.min.js:38) at DebugAppView.detectChanges (core.umd.min.js:38) at DebugAppView.AppView.detectViewChildrenChanges (core.umd.min.js:38) at DebugAppView._View_ApiAccessComponent6.detectChangesInternal (ApiAccessComponent.ngfactory.js:754) at DebugAppView.AppView.detectChanges (core.umd.min.js:38) at DebugAppView.detectChanges (core.umd.min.js:38)</code></p> <p dir="auto"><strong>Expected behavior</strong><br> Select the Multiple option as a array is provided in the model</p> <p dir="auto"><strong>Reproduction</strong><br> <code class="notranslate">&lt;select multiple role="listbox" [formControl]="apiAccessForm.controls['roleName']" [(ngModel)]="objSelectedRole"&gt; &lt;title="select question" class="form-control"&gt; &lt;option *ngFor="let obj of objRoleList" [value]="obj.roleName"&gt;{{obj.roleName}}&lt;/option&gt; &lt;select&gt;</code></p> <p dir="auto"><strong>Its works, if I remove both ngModel and formControl directives, here objSelectedRole is data from db</strong></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 | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p> </li> </ul>
<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> When using the basic example of the Dynamic Form, i try to add [multiple]="true" to the select:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;select [id]=&quot;question.key&quot; *ngSwitchCase=&quot;'dropdown'&quot; [formControlName]=&quot;question.key&quot; [multiple]=&quot;true&quot;&gt; &lt;option *ngFor=&quot;let opt of question.options&quot; [value]=&quot;opt.key&quot;&gt;{{opt.value}}&lt;/option&gt; &lt;/select&gt;"><pre class="notranslate"><code class="notranslate"> &lt;select [id]="question.key" *ngSwitchCase="'dropdown'" [formControlName]="question.key" [multiple]="true"&gt; &lt;option *ngFor="let opt of question.options" [value]="opt.key"&gt;{{opt.value}}&lt;/option&gt; &lt;/select&gt; </code></pre></div> <p dir="auto">ANd i get a values.map does not exist error:<br> TypeError: values.map is not a function<br> at SelectMultipleControlValueAccessor.writeValue (forms.umd.js:1317)<br> at setUpControl (forms.umd.js:1470)<br> at FormGroupDirective.addControl (forms.umd.js:3889)<br> at FormControlName._setUpControl (forms.umd.js:4318)<br> at FormControlName.ngOnChanges (forms.umd.js:4264)<br> at DebugAppView._View_DynamicFormQuestionComponent22.detectChangesInternal (DynamicFormQuestionComponent2.ngfactory.js:514)<br> at DebugAppView.AppView.detectChanges (core.umd.js:9566)<br> at DebugAppView.detectChanges (core.umd.js:9671)<br> at DebugAppView.AppView.detectContentChildrenChanges (core.umd.js:9584)<br> at DebugAppView._View_DynamicFormQuestionComponent20.detectChangesInternal (DynamicFormQuestionComponent2.ngfactory.js:200)</p> <p dir="auto"><strong>Expected behavior</strong><br> No error should be thrown when using [multiple]="true"</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> Run through the Dynamic Form documentation and just add [multiple]="true" to the select</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Broken</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Surface Book w/ Win10 in visual studio using npm/gulp with SystemJS</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X<br> 2.0.0</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br> Everything tried... Chrome, edge, firefox</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li> </ul>
1
<p dir="auto">The scope of a block of PHP code that is enclosed inside of a separate language (ie. within a JS block in a page) is not detected properly if the enclosing PHP tags are both on the same line. If the tags are not separated onto different lines then Atom thinks the code is just part of the enclosing code block.</p> <p dir="auto">For example, this bit of code is incorrectly detected as part of the JavaScript block:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;html&gt; &lt;head&gt; &lt;script type=&quot;text/javascript&quot;&gt; &lt;?php echo 'test'; ?&gt; &lt;/script&gt; &lt;/head&gt; &lt;/html&gt;"><pre class="notranslate">&lt;html&gt; &lt;head&gt; &lt;script type="<span class="pl-s">text/javascript</span>"&gt; <span class="pl-ent">&lt;?php</span> <span class="pl-k">echo</span> <span class="pl-s">'test'</span>; <span class="pl-ent">?&gt;</span> <span class="pl-kos">&lt;/</span>script<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span>head<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span>html<span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/427137/8488254/2724c51c-20c6-11e5-9ca2-2aac8c7c8dbf.png"><img src="https://cloud.githubusercontent.com/assets/427137/8488254/2724c51c-20c6-11e5-9ca2-2aac8c7c8dbf.png" alt="screenshot from 2015-07-02 14 22 25" style="max-width: 100%;"></a></p> <p dir="auto">While this code is properly detected as being a PHP block:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;html&gt; &lt;head&gt; &lt;script type=&quot;text/javascript&quot;&gt; &lt;?php echo 'test'; ?&gt; &lt;/script&gt; &lt;/head&gt; &lt;/html&gt;"><pre class="notranslate">&lt;html&gt; &lt;head&gt; &lt;script type="<span class="pl-s">text/javascript</span>"&gt; <span class="pl-ent">&lt;?php</span> <span class="pl-k">echo</span> <span class="pl-s">'test'</span>; <span class="pl-ent">?&gt;</span> <span class="pl-kos">&lt;/</span>script<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span>head<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span>html<span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/427137/8488257/2e924252-20c6-11e5-9efa-831ef95bdccc.png"><img src="https://cloud.githubusercontent.com/assets/427137/8488257/2e924252-20c6-11e5-9efa-831ef95bdccc.png" alt="screenshot from 2015-07-02 14 23 06" style="max-width: 100%;"></a></p> <hr> <p dir="auto">This issue is present on a completely fresh Atom installation, as well as one with a multitude of plugins.<br> Atom Version: 1.0.0<br> Operating Systems:</p> <ul dir="auto"> <li>Ubuntu 15.04 x64</li> <li>Windows 8.1 x64</li> </ul>
<p dir="auto"><a href="https://discuss.atom.io/t/bug-wrong-classes-for-php-inside-js" rel="nofollow">A thread has come up</a> on the forum that points out that <code class="notranslate">&lt;?php ... ?&gt;</code> doesn't get matched as PHP code when on the same line. I did a little bit of poking around and found that the embedded whitespace pattern has a negative lookahead <code class="notranslate">(?![^?]*\\?&gt;)</code> that, when removed, allows single-line PHP comments to display. The thing is, I can't figure out what that negative lookahead was put there to check against. <a href="https://github.com/DamnedScholar/language-php">My fork of this package</a> seems to work just fine.</p> <p dir="auto">Does anybody know what the negative lookahead was meant to guard against?</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> Some <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-3-4/#const-assertions" rel="nofollow">const assertions</a> result in errors. Seems like the check introduced in <a href="https://github.com/babel/babel/pull/9534/files#diff-be80f98b2faf4a89409f44cabdf86e5dR357">this PR</a> is too strict? Because I didn't see any errors in VSCode till I started webpack dev server.</p> <p dir="auto"><strong>Input Code</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo() { const a = getObjectAWithLongAssType(); const b = getObjectBWithLongAssType(); return [a, b] as const; // no errors in tsc or vscode // Previously: return [a,b] as [typeof a, typeof b] }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-en">getObjectAWithLongAssType</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">b</span> <span class="pl-c1">=</span> <span class="pl-en">getObjectBWithLongAssType</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-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">]</span> <span class="pl-s1">as</span> <span class="pl-k">const</span><span class="pl-kos">;</span> <span class="pl-c">// no errors in tsc or vscode</span> <span class="pl-c">// Previously: return [a,b] as [typeof a, typeof b]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> VSCode outputs the expected readonly tuple type, so I don't expect any errors in babel.</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;@babel/core&quot;: &quot;^7.4.0&quot;, &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.4.0&quot;, &quot;@babel/polyfill&quot;: &quot;^7.4.0&quot;, &quot;@babel/preset-env&quot;: &quot;^7.4.2&quot;, &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;, &quot;@babel/preset-typescript&quot;: &quot;^7.3.3&quot;,"><pre class="notranslate"><code class="notranslate"> "@babel/core": "^7.4.0", "@babel/plugin-proposal-class-properties": "^7.4.0", "@babel/polyfill": "^7.4.0", "@babel/preset-env": "^7.4.2", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.3.3", </code></pre></div> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tanhauhau/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tanhauhau">@tanhauhau</a> is there a need for <code class="notranslate">tsCheckLiteralForConstantContext</code> to happen in babel? To me it seems like it's enough to parse <code class="notranslate">as const</code> expressions as assertions and move on, since TypeScript is actually in charge of ensuring the assertions are valid.</p>
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/s-panferov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/s-panferov">@s-panferov</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> any</li> <li><strong>Node version:</strong> &gt;= 4</li> </ul> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as crypto from 'crypto';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">crypto</span> <span class="pl-k">from</span> <span class="pl-s">'crypto'</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto"><code class="notranslate">_interopRequireWildcard</code> iterates through export object properties and this fires deprecation warning because of deprecated property access.</p>
0
<p dir="auto">This program:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub fn main() { let s: &amp;str = &quot;foo&quot;; fail!(s); }"><pre class="notranslate"><code class="notranslate">pub fn main() { let s: &amp;str = "foo"; fail!(s); } </code></pre></div> <p dir="auto">generates this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;std-macros&gt;:37:13: 37:36 error: instantiating a type parameter with an incompatible type `&amp;str`, which does not fulfill `Send` &lt;std-macros&gt;:37 ::std::rt::begin_unwind($msg, file!(), line!()) ^~~~~~~~~~~~~~~~~~~~~~~ &lt;std-macros&gt;:32:5: 42:6 note: in expansion of fail! badfail.rs:3:5: 3:14 note: expansion site error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">&lt;std-macros&gt;:37:13: 37:36 error: instantiating a type parameter with an incompatible type `&amp;str`, which does not fulfill `Send` &lt;std-macros&gt;:37 ::std::rt::begin_unwind($msg, file!(), line!()) ^~~~~~~~~~~~~~~~~~~~~~~ &lt;std-macros&gt;:32:5: 42:6 note: in expansion of fail! badfail.rs:3:5: 3:14 note: expansion site error: aborting due to previous error </code></pre></div> <p dir="auto">It does point you to the right place if you read it close, but I missed it myself the first few times.</p>
<p dir="auto">Followup to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3622412" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1970" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/1970/hovercard" href="https://github.com/rust-lang/rust/pull/1970">#1970</a>.</p> <p dir="auto">One of the two tests in struct-return.rs doesn't work on x86. Works on x64 though.</p> <p dir="auto">The double/byte/double one winds up feeding garbage memory to the callee. Valgrind gets upset. Program crashes.</p>
0
<p dir="auto">maintenance/1.9.x:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [8]: ap = np.array([0, 2, 4, 6, 8, 10]) # Passing an empty 'k' array to partition is a no-op: In [9]: ap.partition(np.array([], dtype=np.int64)) In [10]: ap Out[10]: array([ 0, 2, 4, 6, 8, 10])"><pre class="notranslate"><code class="notranslate">In [8]: ap = np.array([0, 2, 4, 6, 8, 10]) # Passing an empty 'k' array to partition is a no-op: In [9]: ap.partition(np.array([], dtype=np.int64)) In [10]: ap Out[10]: array([ 0, 2, 4, 6, 8, 10]) </code></pre></div> <p dir="auto">1.10.1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [2]: ap = np.array([0, 2, 4, 6, 8, 10]) In [3]: ap.partition(np.array([], dtype=np.int64)) --------------------------------------------------------------------------- MemoryError Traceback (most recent call last) &lt;ipython-input-3-c708b3f943a6&gt; in &lt;module&gt;() ----&gt; 1 ap.partition(np.array([], dtype=np.int64)) MemoryError: "><pre class="notranslate"><code class="notranslate">In [2]: ap = np.array([0, 2, 4, 6, 8, 10]) In [3]: ap.partition(np.array([], dtype=np.int64)) --------------------------------------------------------------------------- MemoryError Traceback (most recent call last) &lt;ipython-input-3-c708b3f943a6&gt; in &lt;module&gt;() ----&gt; 1 ap.partition(np.array([], dtype=np.int64)) MemoryError: </code></pre></div> <p dir="auto">Noticed this because it's breaking some tests in patsy.</p>
<p dir="auto">If np.unique is used with <code class="notranslate">return_index=True</code> and the input is empty, the resulting array has dtype <code class="notranslate">bool</code> instead of <code class="notranslate">int</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import numpy as np In [2]: np.unique([], return_index=True) Out[2]: (array([], dtype=float64), array([], dtype=bool)) In [3]: np.unique([1,], return_index=True) Out[3]: (array([1]), array([0]))"><pre class="notranslate"><code class="notranslate">In [1]: import numpy as np In [2]: np.unique([], return_index=True) Out[2]: (array([], dtype=float64), array([], dtype=bool)) In [3]: np.unique([1,], return_index=True) Out[3]: (array([1]), array([0])) </code></pre></div>
0
<p dir="auto">The demo uses a simple Quiz application (just the routing part).</p> <p dir="auto">Steps to reproduce -</p> <ol dir="auto"> <li>Start the quiz</li> <li>Navigate forward</li> <li>Click the back button and notice that the component does not render properly</li> </ol> <p dir="auto">See Plunker - <a href="http://plnkr.co/edit/8LMo0VLCLIuM06itCifn?p=preview" rel="nofollow">http://plnkr.co/edit/8LMo0VLCLIuM06itCifn?p=preview</a></p> <p dir="auto"><strong>Current behavior</strong></p> <ul dir="auto"> <li>usage of the browser's back button does not cause component to re-render properly</li> </ul> <p dir="auto"><strong>Expected/desired behavior</strong></p> <ul dir="auto"> <li>usage of the browser's back button <em>does</em> cause the component to re-render properly (see Google Chrome behavior for expected behavior)</li> </ul> <p dir="auto"><strong>Other information</strong><br> I also posted a <a href="http://stackoverflow.com/questions/36361140/back-button-on-angular2-is-broken" rel="nofollow">question to Stack Overflow</a> about this for additional context</p>
<p dir="auto">I am using Angular 2.0.0-beta.11 on OS X El Capitan. When Safari's browser history back function is used, <code class="notranslate">OnInit</code> does not get fired. It seems to work fine on Chrome.</p> <p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>Fire up the official <a href="https://angular.io/resources/live-examples/toh-5/ts/plnkr.html" rel="nofollow">Tour Of Heroes Demo</a></li> <li>Click on any hero in the dashboard</li> <li>Use the browser back button or click the "back" button in the demo. The dashboard doesn't populate.</li> </ol> <p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112045282" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/4809" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/4809/hovercard" href="https://github.com/angular/angular/issues/4809">#4809</a></p>
1
<h2 dir="auto">Issue description</h2> <p dir="auto">ResNet-50 (resolution of 128, batch size 8) crashes on PyTorch 0.4.1, CUDA 9.2 with fp16. It works with CUDA 9.0 and fp32.</p> <h2 dir="auto">Code example</h2> <p dir="auto"><a href="https://github.com/ddkang/fai-imagenet/tree/imagenet/imagenet_nv">https://github.com/ddkang/fai-imagenet/tree/imagenet/imagenet_nv</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting program: /home/daniel_d_kang/anaconda3/envs/dawnbench/bin/python main.py -a resnet50 --lr 0.40 --epochs 45 --small -j 8 --fp16 -b 8 --loss-scale 512 /mnt/disks/dawnbench/imagenet [Thread debugging using libthread_db enabled] Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;. ~~epoch hours top1Accuracy [New Thread 0x7fffaf723700 (LWP 12826)] [New Thread 0x7fffaef22700 (LWP 12827)] 0 [New Thread 0x7fff44a3f700 (LWP 13143)] [New Thread 0x7fff426fe700 (LWP 13155)] [New Thread 0x7fff4173f700 (LWP 13156)] [New Thread 0x7fff40f3e700 (LWP 13157)] [New Thread 0x7fff4073d700 (LWP 13158)] [New Thread 0x7fff3ff3c700 (LWP 13159)] [New Thread 0x7fff3f73b700 (LWP 13162)] [New Thread 0x7fff3e77f700 (LWP 13164)] [New Thread 0x7fff3df7e700 (LWP 13165)] zero_grad tensor(3648., device='cuda:0', dtype=torch.float16, grad_fn=&lt;MulBackward&gt;) torch.Size([]) torch.cuda.HalfTensor [New Thread 0x7fff3d77d700 (LWP 13216)] [New Thread 0x7fff3cf7c700 (LWP 13217)] Thread 14 &quot;python&quot; received signal SIGFPE, Arithmetic exception. [Switching to Thread 0x7fff3cf7c700 (LWP 13217)] 0x00007fffc3151984 in cudnn::gemm::conv2d(cudnnContext*, void const*, cudnnTensor4dStruct*, void const*, cudnnFilter4dStruct*, void const*, cudnnConvolutionStruct*, cudnnConvWorkingStruct const*, void*, unsigned long, void const*, cudnnTensor4dStruct*, void*, cudnn::gemm::Conv2dType_t, cudnn::gemm::Conv2dConfig&amp;, bool, void const*, cudnnActivationStruct*, void*) () from /home/daniel_d_kang/anaconda3/envs/dawnbench/lib/python3.6/site-packages/torch/lib/libcaffe2_gpu.so"><pre lang="(gdb)" class="notranslate"><code class="notranslate">Starting program: /home/daniel_d_kang/anaconda3/envs/dawnbench/bin/python main.py -a resnet50 --lr 0.40 --epochs 45 --small -j 8 --fp16 -b 8 --loss-scale 512 /mnt/disks/dawnbench/imagenet [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ~~epoch hours top1Accuracy [New Thread 0x7fffaf723700 (LWP 12826)] [New Thread 0x7fffaef22700 (LWP 12827)] 0 [New Thread 0x7fff44a3f700 (LWP 13143)] [New Thread 0x7fff426fe700 (LWP 13155)] [New Thread 0x7fff4173f700 (LWP 13156)] [New Thread 0x7fff40f3e700 (LWP 13157)] [New Thread 0x7fff4073d700 (LWP 13158)] [New Thread 0x7fff3ff3c700 (LWP 13159)] [New Thread 0x7fff3f73b700 (LWP 13162)] [New Thread 0x7fff3e77f700 (LWP 13164)] [New Thread 0x7fff3df7e700 (LWP 13165)] zero_grad tensor(3648., device='cuda:0', dtype=torch.float16, grad_fn=&lt;MulBackward&gt;) torch.Size([]) torch.cuda.HalfTensor [New Thread 0x7fff3d77d700 (LWP 13216)] [New Thread 0x7fff3cf7c700 (LWP 13217)] Thread 14 "python" received signal SIGFPE, Arithmetic exception. [Switching to Thread 0x7fff3cf7c700 (LWP 13217)] 0x00007fffc3151984 in cudnn::gemm::conv2d(cudnnContext*, void const*, cudnnTensor4dStruct*, void const*, cudnnFilter4dStruct*, void const*, cudnnConvolutionStruct*, cudnnConvWorkingStruct const*, void*, unsigned long, void const*, cudnnTensor4dStruct*, void*, cudnn::gemm::Conv2dType_t, cudnn::gemm::Conv2dConfig&amp;, bool, void const*, cudnnActivationStruct*, void*) () from /home/daniel_d_kang/anaconda3/envs/dawnbench/lib/python3.6/site-packages/torch/lib/libcaffe2_gpu.so </code></pre></div> <h2 dir="auto">System Info</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 0.4.1 Is debug build: No CUDA used to build PyTorch: 9.2.148 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: Could not collect Python version: 3.6 Is CUDA available: Yes CUDA runtime version: Could not collect GPU models and configuration: GPU 0: Tesla V100-SXM2-16GB Nvidia driver version: 396.44 cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.2.1 /usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a Versions of relevant libraries: [pip] numpy (1.14.3) [pip] numpydoc (0.8.0) [pip] torch (0.4.1) [pip] torchvision (0.2.1) [conda] cuda92 1.0 0 pytorch [conda] pytorch 0.4.1 py36_cuda9.2.148_cudnn7.1.4_1 [cuda92] pytorch [conda] torchvision 0.2.1 py36_1 pytorch"><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 0.4.1 Is debug build: No CUDA used to build PyTorch: 9.2.148 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: Could not collect Python version: 3.6 Is CUDA available: Yes CUDA runtime version: Could not collect GPU models and configuration: GPU 0: Tesla V100-SXM2-16GB Nvidia driver version: 396.44 cuDNN version: Probably one of the following: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.2.1 /usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a Versions of relevant libraries: [pip] numpy (1.14.3) [pip] numpydoc (0.8.0) [pip] torch (0.4.1) [pip] torchvision (0.2.1) [conda] cuda92 1.0 0 pytorch [conda] pytorch 0.4.1 py36_cuda9.2.148_cudnn7.1.4_1 [cuda92] pytorch [conda] torchvision 0.2.1 py36_1 pytorch </code></pre></div>
<h2 dir="auto">Issue description</h2> <p dir="auto">The following code produces a <code class="notranslate">Floating point exception (core dumped)</code> on Volta series with fp16:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch from torch.nn import Conv2d conv=torch.nn.Conv2d(256, 512, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False).cuda().half() x=torch.rand(2,256,196,196, requires_grad=True).cuda().half() y=conv(x) loss=y.min() loss.backward()"><pre class="notranslate"><code class="notranslate">import torch from torch.nn import Conv2d conv=torch.nn.Conv2d(256, 512, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False).cuda().half() x=torch.rand(2,256,196,196, requires_grad=True).cuda().half() y=conv(x) loss=y.min() loss.backward() </code></pre></div> <p dir="auto">By changing the convolution parameters by +1/-1 the code works.</p> <p dir="auto">I suspect this to be a cudnn bug.</p> <h2 dir="auto">System Info</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 0.4.0a0+3749c58 Is debug build: No CUDA used to build PyTorch: 9.2.88 OS: Ubuntu 16.04.4 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.5 Is CUDA available: Yes CUDA runtime version: 9.2.88 GPU models and configuration: GPU 0: TITAN V GPU 1: TITAN V GPU 2: TITAN V GPU 3: TITAN V Nvidia driver version: 396.26 cuDNN version: Probably one of the following: /usr/local/cuda-9.2/cuda/lib64/libcudnn.so.7.1.4 /usr/local/cuda-9.2/cuda/lib64/libcudnn_static.a /usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudnn.so.7.1.4 /usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudnn_static.a Versions of relevant libraries: [pip3] numpy (1.14.5) [pip3] torch (0.4.0a0+3749c58) [pip3] torchvision (0.2.1) [conda] Could not collect"><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 0.4.0a0+3749c58 Is debug build: No CUDA used to build PyTorch: 9.2.88 OS: Ubuntu 16.04.4 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.5 Is CUDA available: Yes CUDA runtime version: 9.2.88 GPU models and configuration: GPU 0: TITAN V GPU 1: TITAN V GPU 2: TITAN V GPU 3: TITAN V Nvidia driver version: 396.26 cuDNN version: Probably one of the following: /usr/local/cuda-9.2/cuda/lib64/libcudnn.so.7.1.4 /usr/local/cuda-9.2/cuda/lib64/libcudnn_static.a /usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudnn.so.7.1.4 /usr/local/cuda-9.2/targets/x86_64-linux/lib/libcudnn_static.a Versions of relevant libraries: [pip3] numpy (1.14.5) [pip3] torch (0.4.0a0+3749c58) [pip3] torchvision (0.2.1) [conda] Could not collect </code></pre></div> <p dir="auto">Reproducible also on V100.</p>
1
<p dir="auto">Currently we have "something" that shows up in the overlay onDrag that will then follow your finger and the original Draggable doesn't move or change. I want it to look like the original is following my finger.</p>
<p dir="auto">What I want to be able to do:<br> Lets say I have a vertical list of five draggables. Dragging one from the middle should make it appear it is being/has been removed from the list during the drag.</p> <p dir="auto">Draggable's API doesn't support this use case atm.</p>
1
<p dir="auto">I was running Julia 1.6.1, and typed <code class="notranslate">gc</code> into the REPL. This led to the errors shown below.</p> <p dir="auto">I also have the current master branch of Julia installed (which identifies as <code class="notranslate">Julia 1.8</code>).</p> <p dir="auto">Note that the first error mentions the file name <code class="notranslate">/Users/eschnett/.julia/environments/v1.8/Manifest.toml</code>, which is the manifest for Julia 1.8.</p> <p dir="auto">I think each version of Julia should either be able to read other versions' manifests, or should handle such incompatibilities gracefully.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(@v1.6) pkg&gt; gc ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 ┌ Warning: Reading manifest file at /Users/eschnett/.julia/environments/v1.8/Manifest.toml failed with error │ exception = │ MethodError: no method matching get(::Pair{String, Any}, ::String, ::Nothing) │ Closest candidates are: │ get(::DataStructures.Accumulator, ::Any, ::Any) at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/accumulator.jl:47 │ get(::Test.GenericDict, ::Any, ::Any) at /Users/eschnett/src/julia-1.6/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1663 │ get(::DataStructures.RobinDict{K, V}, ::Any, ::Any) where {K, V} at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/robin_dict.jl:384 │ ... └ @ Pkg.API ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:504 ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 ┌ Warning: Reading manifest file at /Users/eschnett/.julia/environments/v1.7/Manifest.toml failed with error │ exception = │ MethodError: no method matching get(::Pair{String, Any}, ::String, ::Nothing) │ Closest candidates are: │ get(::DataStructures.Accumulator, ::Any, ::Any) at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/accumulator.jl:47 │ get(::Test.GenericDict, ::Any, ::Any) at /Users/eschnett/src/julia-1.6/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1663 │ get(::DataStructures.RobinDict{K, V}, ::Any, ::Any) where {K, V} at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/robin_dict.jl:384 │ ... └ @ Pkg.API ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:504 Active manifest files: 54 found Active artifact files: 208 found ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 Active scratchspaces: 18 found Deleted 1 artifact installation (4.654 MiB)"><pre class="notranslate"><code class="notranslate">(@v1.6) pkg&gt; gc ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 ┌ Warning: Reading manifest file at /Users/eschnett/.julia/environments/v1.8/Manifest.toml failed with error │ exception = │ MethodError: no method matching get(::Pair{String, Any}, ::String, ::Nothing) │ Closest candidates are: │ get(::DataStructures.Accumulator, ::Any, ::Any) at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/accumulator.jl:47 │ get(::Test.GenericDict, ::Any, ::Any) at /Users/eschnett/src/julia-1.6/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1663 │ get(::DataStructures.RobinDict{K, V}, ::Any, ::Any) where {K, V} at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/robin_dict.jl:384 │ ... └ @ Pkg.API ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:504 ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 ┌ Warning: Reading manifest file at /Users/eschnett/.julia/environments/v1.7/Manifest.toml failed with error │ exception = │ MethodError: no method matching get(::Pair{String, Any}, ::String, ::Nothing) │ Closest candidates are: │ get(::DataStructures.Accumulator, ::Any, ::Any) at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/accumulator.jl:47 │ get(::Test.GenericDict, ::Any, ::Any) at /Users/eschnett/src/julia-1.6/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1663 │ get(::DataStructures.RobinDict{K, V}, ::Any, ::Any) where {K, V} at /Users/eschnett/.julia/packages/DataStructures/ixwFs/src/robin_dict.jl:384 │ ... └ @ Pkg.API ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:504 Active manifest files: 54 found Active artifact files: 208 found ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 ┌ Error: Could not parse entry for `deps` └ @ Pkg.Types ~/src/julia-1.6/usr/share/julia/stdlib/v1.6/Pkg/src/manifest.jl:150 Active scratchspaces: 18 found Deleted 1 artifact installation (4.654 MiB) </code></pre></div>
<p dir="auto">This looks valid syntax but is not accepted.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; is_array(::T) :: Bool where {T&lt;:AbstractArray} = true ERROR: UndefVarError: T not defined Stacktrace: [1] top-level scope at none:0"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">is_array</span>(<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">::</span> <span class="pl-c1">Bool</span> <span class="pl-k">where</span> {T<span class="pl-k">&lt;:</span><span class="pl-c1">AbstractArray</span>} <span class="pl-k">=</span> <span class="pl-c1">true</span> ERROR<span class="pl-k">:</span> UndefVarError<span class="pl-k">:</span> T not defined Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope at none<span class="pl-k">:</span><span class="pl-c1">0</span></pre></div> <p dir="auto">Using the same syntax, but with <code class="notranslate">function</code> keyword is accepted.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; function is_array(::T) :: Bool where {T&lt;:AbstractArray} return true end is_array (generic function with 1 method)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">is_array</span>(<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">::</span> <span class="pl-c1">Bool</span> <span class="pl-k">where</span> {T<span class="pl-k">&lt;:</span><span class="pl-c1">AbstractArray</span>} <span class="pl-k">return</span> <span class="pl-c1">true</span> <span class="pl-k">end</span> is_array (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)</pre></div> <p dir="auto">Removing the return type is also accepted.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; is_array_(::T) where {T&lt;:AbstractArray} = true is_array_ (generic function with 1 method)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">is_array_</span>(<span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">where</span> {T<span class="pl-k">&lt;:</span><span class="pl-c1">AbstractArray</span>} <span class="pl-k">=</span> <span class="pl-c1">true</span> is_array_ (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)</pre></div> <p dir="auto">Somewhat related issues: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="421881231" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/31378" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/31378/hovercard" href="https://github.com/JuliaLang/julia/issues/31378">#31378</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427175548" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/31542" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/31542/hovercard" href="https://github.com/JuliaLang/julia/issues/31542">#31542</a></p>
0
<p dir="auto">Basically, every time <code class="notranslate">setState</code> is called and a rerender happens, I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invariant Violation: dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering."><pre class="notranslate"><code class="notranslate">Invariant Violation: dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering. </code></pre></div> <p dir="auto">I've created a very bare repo where you can recreate the issue:<br> <a href="https://github.com/dmatteo/setStateBoom">https://github.com/dmatteo/setStateBoom</a></p> <p dir="auto">The component + test suite is so small that I can copy/paste it here:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import React, {Component} from 'react/addons'; import jsdomify from 'jsdomify'; import expect from 'unexpected'; class MyComponent extends Component { constructor(props) { super(props); this.displayName = 'MyComponent'; this.state = { bananas: 'bananas' }; } render() { return &lt;div&gt;{this.state.bananas}&lt;/div&gt; } } describe('setState test', () =&gt; { before(() =&gt; { // this leaks document and window to global jsdomify.create(); }); it('should render', () =&gt; { let instance = React.addons.TestUtils.renderIntoDocument(&lt;MyComponent&gt;&lt;/MyComponent&gt;); expect(instance, 'to be defined'); }); it('should not throw', () =&gt; { let instance = React.addons.TestUtils.renderIntoDocument(&lt;MyComponent&gt;&lt;/MyComponent&gt;); let foo = () =&gt; { instance.setState({bananas: 'apples'}); }; expect(foo, 'not to throw'); }) });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-v">Component</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react/addons'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">jsdomify</span> <span class="pl-k">from</span> <span class="pl-s">'jsdomify'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">expect</span> <span class="pl-k">from</span> <span class="pl-s">'unexpected'</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">MyComponent</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">displayName</span> <span class="pl-c1">=</span> <span class="pl-s">'MyComponent'</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">bananas</span>: <span class="pl-s">'bananas'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">render</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-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</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">bananas</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'setState test'</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-en">before</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-c">// this leaks document and window to global</span> <span class="pl-s1">jsdomify</span><span class="pl-kos">.</span><span class="pl-en">create</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-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should render'</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-k">let</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">TestUtils</span><span class="pl-kos">.</span><span class="pl-en">renderIntoDocument</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">MyComponent</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">MyComponent</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-s">'to be defined'</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">it</span><span class="pl-kos">(</span><span class="pl-s">'should not throw'</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-k">let</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">addons</span><span class="pl-kos">.</span><span class="pl-c1">TestUtils</span><span class="pl-kos">.</span><span class="pl-en">renderIntoDocument</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">MyComponent</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">MyComponent</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-en">foo</span> <span class="pl-c1">=</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-s1">instance</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">bananas</span>: <span class="pl-s">'apples'</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">expect</span><span class="pl-kos">(</span><span class="pl-en">foo</span><span class="pl-kos">,</span> <span class="pl-s">'not to throw'</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">Do you have any idea what is happening and what can I do about it? (if anything)</p>
<p dir="auto">Currently React relies on a global <code class="notranslate">window</code> (and <code class="notranslate">document</code> and <code class="notranslate">navigator</code>).<br> This works in a browser and it works in other environments if one sets a global <code class="notranslate">window</code>.<br> However, relying on globals prevents multiple independent React engines from running together.</p> <p dir="auto">Testing, for example, benefits strongly from isolated environments. It would be nice if one could run separate tests with <code class="notranslate">jsdom</code> without manually cleaning up the <code class="notranslate">window</code> every time.<br> Another use case is for programatic behaviour inspection. It's interesting to load multiple windows with <code class="notranslate">jsdom</code> and compare the behavior of one's library with different calls. If React is involved, however, this is impossible.</p> <p dir="auto">Avoiding relying on globals can be added in a backwards-compatible fashion. If there is a global <code class="notranslate">window</code> and <code class="notranslate">document</code>, keep the existing behavior. If there isn't, instead of exposing an API, expose a factory taking a <code class="notranslate">window</code> and returning an API. For example, see how <a href="https://github.com/jquery/jquery/blob/master/src/intro.js#L25">jQuery did it</a>.</p> <p dir="auto">A decision to avoid globals means refactoring existing code base to pass <code class="notranslate">window</code> explicitly everywhere, and maintaining that attitude in the future. What is your opinion on such a feature?</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Scenario</h3> <p dir="auto">We have an interface provided in two IDC clusters. We call them <code class="notranslate">BJ</code> / <code class="notranslate">HZ</code>.<br> The target interface we call it <code class="notranslate">AService</code>.</p> <p dir="auto">In project <code class="notranslate">AProject</code> we want to subscribe AService separately from both BJ and HZ for different beans' registering.</p> <p dir="auto">In XML age we can easily achieving that by</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:registry id=&quot;ARegistry&quot; address=&quot;xxx&quot; /&gt; &lt;dubbo:registry id=&quot;BRegistry&quot; address=&quot;zzz&quot; register=&quot;false&quot; /&gt; &lt;dubbo:consumer registry=&quot;ARegistry&quot; .... /&gt; &lt;dubbo:consumer interface=&quot;AService&quot; id=&quot;beanA /&gt; &lt;dubbo:consumer interface=&quot;AService&quot; id=&quot;beanB&quot; registry=&quot;BRegistry /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">registry</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>ARegistry<span class="pl-pds">"</span></span> <span class="pl-e">address</span>=<span class="pl-s"><span class="pl-pds">"</span>xxx<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">registry</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>BRegistry<span class="pl-pds">"</span></span> <span class="pl-e">address</span>=<span class="pl-s"><span class="pl-pds">"</span>zzz<span class="pl-pds">"</span></span> <span class="pl-e">register</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">consumer</span> <span class="pl-e">registry</span>=<span class="pl-s"><span class="pl-pds">"</span>ARegistry<span class="pl-pds">"</span></span> .... /&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">consumer</span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>AService<span class="pl-pds">"</span></span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>beanA /&gt;</span> <span class="pl-s">&lt;dubbo:consumer interface=<span class="pl-pds">"</span></span>AService<span class="pl-s"><span class="pl-pds">"</span> id=<span class="pl-pds">"</span></span>beanB<span class="pl-s"><span class="pl-pds">"</span> registry=<span class="pl-pds">"</span></span>BRegistry /&gt;</pre></div> <p dir="auto">But in dubbo.properties, it's hard and the correct way is:</p> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# main registry dubbo.registry.id=registryMain dubbo.registry.address=xxxx dubbo.registry.file=logs/dubbo-registry-main.properties dubbo.registry.protocol=zookeeper # second registry dubbo.registries.registryOther.id=registryOther dubbo.registries.registryOther.address=zzzz dubbo.registries.registryOther.file=logs/dubbo-registry-other.properties dubbo.registries.registryOther.protocol=zookeeper dubbo.registries.registryOther.register=false dubbo.provider.timeout=30000 dubbo.provider.registryIds=registryMain dubbo.consumer.id=consumerMain dubbo.consumer.registryIds=registryMain dubbo.consumer.timeout=30000 dubbo.consumer.retries=0 dubbo.consumer.default=true ########## important dubbo.consumers.consumerOther.id=consumerOther dubbo.consumers.consumerOther.registryIds=registryOther dubbo.consumers.consumerOther.timeout=30000 dubbo.consumers.consumerOther.retries=0 dubbo.consumers.consumerOther.default=false ####### important dubbo.monitor.protocol=registry"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> main registry</span> <span class="pl-k">dubbo.registry.id</span>=registryMain <span class="pl-k">dubbo.registry.address</span>=xxxx <span class="pl-k">dubbo.registry.file</span>=logs/dubbo-registry-main.properties <span class="pl-k">dubbo.registry.protocol</span>=zookeeper <span class="pl-c"><span class="pl-c">#</span> second registry</span> <span class="pl-k">dubbo.registries.registryOther.id</span>=registryOther <span class="pl-k">dubbo.registries.registryOther.address</span>=zzzz <span class="pl-k">dubbo.registries.registryOther.file</span>=logs/dubbo-registry-other.properties <span class="pl-k">dubbo.registries.registryOther.protocol</span>=zookeeper <span class="pl-k">dubbo.registries.registryOther.register</span>=false <span class="pl-k">dubbo.provider.timeout</span>=30000 <span class="pl-k">dubbo.provider.registryIds</span>=registryMain <span class="pl-k">dubbo.consumer.id</span>=consumerMain <span class="pl-k">dubbo.consumer.registryIds</span>=registryMain <span class="pl-k">dubbo.consumer.timeout</span>=30000 <span class="pl-k">dubbo.consumer.retries</span>=0 <span class="pl-k">dubbo.consumer.default</span>=true <span class="pl-c"><span class="pl-c">#</span>######### important</span> <span class="pl-k">dubbo.consumers.consumerOther.id</span>=consumerOther <span class="pl-k">dubbo.consumers.consumerOther.registryIds</span>=registryOther <span class="pl-k">dubbo.consumers.consumerOther.timeout</span>=30000 <span class="pl-k">dubbo.consumers.consumerOther.retries</span>=0 <span class="pl-k">dubbo.consumers.consumerOther.default</span>=false <span class="pl-c"><span class="pl-c">#</span>###### important</span> <span class="pl-k">dubbo.monitor.protocol</span>=registry</pre></div> <p dir="auto">And when reference:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Reference private AService beanA; @Reference(consumer = &quot;consumerOther&quot;, injvm = false, id = &quot;beanB&quot;) private AService beanB;"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Reference</span> <span class="pl-k">private</span> <span class="pl-smi">AService</span> <span class="pl-s1">beanA</span>; <span class="pl-c1">@</span><span class="pl-c1">Reference</span>(<span class="pl-s1">consumer</span> = <span class="pl-s">"consumerOther"</span>, <span class="pl-s1">injvm</span> = <span class="pl-c1">false</span>, <span class="pl-s1">id</span> = <span class="pl-s">"beanB"</span>) <span class="pl-k">private</span> <span class="pl-smi">AService</span> <span class="pl-s1">beanB</span>;</pre></div> <p dir="auto">Following will not achieve it:</p> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# main registry dubbo.registry.id=registryMain dubbo.registry.address=xxxx dubbo.registry.file=logs/dubbo-registry-main.properties dubbo.registry.protocol=zookeeper dubbo.registry.default=true ######### # second registry dubbo.registries.registryOther.id=registryOther dubbo.registries.registryOther.address=zzzz dubbo.registries.registryOther.file=logs/dubbo-registry-other.properties dubbo.registries.registryOther.protocol=zookeeper dubbo.registries.registryOther.register=false dubbo.registries.registryOther.default=false dubbo.provider.timeout=30000 dubbo.provider.registryIds=registryMain dubbo.consumer.id=consumerMain dubbo.consumer.registryIds=registryMain dubbo.consumer.timeout=30000 dubbo.consumer.retries=0 dubbo.monitor.protocol=registry"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> main registry</span> <span class="pl-k">dubbo.registry.id</span>=registryMain <span class="pl-k">dubbo.registry.address</span>=xxxx <span class="pl-k">dubbo.registry.file</span>=logs/dubbo-registry-main.properties <span class="pl-k">dubbo.registry.protocol</span>=zookeeper <span class="pl-k">dubbo.registry.default</span>=true <span class="pl-c"><span class="pl-c">#</span>########</span> <span class="pl-c"><span class="pl-c">#</span> second registry</span> <span class="pl-k">dubbo.registries.registryOther.id</span>=registryOther <span class="pl-k">dubbo.registries.registryOther.address</span>=zzzz <span class="pl-k">dubbo.registries.registryOther.file</span>=logs/dubbo-registry-other.properties <span class="pl-k">dubbo.registries.registryOther.protocol</span>=zookeeper <span class="pl-k">dubbo.registries.registryOther.register</span>=false <span class="pl-k">dubbo.registries.registryOther.default</span>=false <span class="pl-k">dubbo.provider.timeout</span>=30000 <span class="pl-k">dubbo.provider.registryIds</span>=registryMain <span class="pl-k">dubbo.consumer.id</span>=consumerMain <span class="pl-k">dubbo.consumer.registryIds</span>=registryMain <span class="pl-k">dubbo.consumer.timeout</span>=30000 <span class="pl-k">dubbo.consumer.retries</span>=0 <span class="pl-k">dubbo.monitor.protocol</span>=registry</pre></div> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Reference private AService beanA; @Reference(registry = &quot;registryOther&quot;, injvm = false, id = &quot;beanB&quot;) private AService beanB;"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Reference</span> <span class="pl-k">private</span> <span class="pl-smi">AService</span> <span class="pl-s1">beanA</span>; <span class="pl-c1">@</span><span class="pl-c1">Reference</span>(<span class="pl-s1">registry</span> = <span class="pl-s">"registryOther"</span>, <span class="pl-s1">injvm</span> = <span class="pl-c1">false</span>, <span class="pl-s1">id</span> = <span class="pl-s">"beanB"</span>) <span class="pl-k">private</span> <span class="pl-smi">AService</span> <span class="pl-s1">beanB</span>;</pre></div> <p dir="auto">Will cause unexpected subscription and wrong configuration for beanB.</p> <p dir="auto">And setting registryOther both register=false and subscript=false will ignore its initializing.</p> <p dir="auto">Same to other kinds of such configuration combinations.</p> <p dir="auto">Is that an issue?</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: win7</li> <li>Java version: jdk8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>write a goole proto file contain bytes list or bytes map.<br> <code class="notranslate">syntax = "proto2"; package org.apache.dubbo.metadata.definition.protobuf.model; message PBRequestType { optional bytes msg = 7; repeated bytes bytesList = 10; map&lt;string, bytes&gt; bytesMap = 11; }</code></li> <li>generate goolgle pb entity and used as service parameter.</li> <li>add dependency</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dependency&gt; &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt; &lt;artifactId&gt;dubbo-metadata-definition-protobuf&lt;/artifactId&gt; &lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dependency&gt; &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt; &lt;artifactId&gt;dubbo-metadata-definition-protobuf&lt;/artifactId&gt; &lt;/dependency&gt; </code></pre></div> <ol start="4" dir="auto"> <li>service log exception when generate service definition.<br> see org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilderTest<br> <a href="https://github.com/vio-lin/incubator-dubbo/tree/reappear">仓库地址</a></li> <li>Some compatibility logic could be added by who want to use the serviceDefinition.<br> We could use String Value in base64 encoded to transform to bytes property.</li> </ol> <p dir="auto">Brief changelog</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">serviceDefinition should be generated successfully.</p> <h3 dir="auto">Actual Result</h3> <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.IllegalArgumentException: Map protobuf property bytesMapof Type java.util.Map&lt;java.lang.String, com.google.protobuf.ByteString&gt; can't be parsed.Map with unString key or ByteString value is not supported. at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder.validateMapType(ProtobufTypeBuilder.java:164) at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder.buildProtobufTypeDefinition(ProtobufTypeBuilder.java:103) at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder.build(ProtobufTypeBuilder.java:72) at org.apache.dubbo.metadata.definition.TypeDefinitionBuilder.build(TypeDefinitionBuilder.java:52) at org.apache.dubbo.metadata.definition.TypeDefinitionBuilder.build(TypeDefinitionBuilder.java:81) at org.apache.dubbo.metadata.definition.ServiceDefinitionBuilder.build(ServiceDefinitionBuilder.java:77) at org.apache.dubbo.metadata.definition.ServiceDefinitionBuilder.buildFullDefinition(ServiceDefinitionBuilder.java:50) at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilderTest.testProtobufBuilder(ProtobufTypeBuilderTest.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:628) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:117) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:184) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:180) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:127) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:74) 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)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalArgumentException: Map protobuf property bytesMapof Type java.util.Map&lt;java.lang.String, com.google.protobuf.ByteString&gt; can't be parsed.Map with unString key or ByteString value is not supported. at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder.validateMapType(ProtobufTypeBuilder.java:164) at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder.buildProtobufTypeDefinition(ProtobufTypeBuilder.java:103) at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder.build(ProtobufTypeBuilder.java:72) at org.apache.dubbo.metadata.definition.TypeDefinitionBuilder.build(TypeDefinitionBuilder.java:52) at org.apache.dubbo.metadata.definition.TypeDefinitionBuilder.build(TypeDefinitionBuilder.java:81) at org.apache.dubbo.metadata.definition.ServiceDefinitionBuilder.build(ServiceDefinitionBuilder.java:77) at org.apache.dubbo.metadata.definition.ServiceDefinitionBuilder.buildFullDefinition(ServiceDefinitionBuilder.java:50) at org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilderTest.testProtobufBuilder(ProtobufTypeBuilderTest.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:628) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:117) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:184) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:180) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:127) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:74) 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) </code></pre></div>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">By default, the PowerShell tab opens. And even with a single open CMD tab, PowerShell always opens.</p> <h1 dir="auto">Proposed technical implementation details</h1> <p dir="auto">The user uses only CMD and should be able to select the default tab type (CMD or PowerShell)</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Option to let terminal be always on top of all windows, just like the new calculator app. This would be useful for people learning how to do stuff, as it can be on top of the tutorial window while not suffering from text going on to the next line during resizing.</p>
0
<p dir="auto">I just updated from beta7 to beta8. After compiling my js file I am seeing the following error in my console <code class="notranslate">Uncaught SyntaxError: Unexpected token )</code>.</p> <p dir="auto">Looking at the line where the error occurred I can see that there is an extra closing parenthesis.</p> <p dir="auto">Below is the generated code. (I've indented it so I could read it better)</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _default = /* harmony import */__WEBPACK_IMPORTED_MODULE_1_redux_actions__[&quot;handleActions&quot;].call( undefined, _handleActions = {}, _defineProperty( _handleActions, /* harmony import */__WEBPACK_IMPORTED_MODULE_0__constants_properties__[&quot;a&quot;] + '_GET_SUCCESS', function undefined(state, _ref) { var payload = _ref.payload; return /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.assign( {}, state, { propertyIDs: /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.union(state.propertyIDs, payload.result) } ); } ), _defineProperty( _handleActions, /* harmony import */__WEBPACK_IMPORTED_MODULE_0__constants_properties__[&quot;b&quot;] + '_GET_SUCCESS', function undefined(state, _ref2) { var payload = _ref2.payload; return /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.assign( {}, state, { propertyIDs: /* harmony import */__WEBPACK_IMPORTED_MODULE_2_lodash___default.a.union(state.propertyIDs, payload.result) } ); } ), _handleActions), // &lt;- extra paren initialState);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">_default</span> <span class="pl-c1">=</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_1_redux_actions__</span><span class="pl-kos">[</span><span class="pl-s">"handleActions"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">_handleActions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">_defineProperty</span><span class="pl-kos">(</span> <span class="pl-s1">_handleActions</span><span class="pl-kos">,</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_0__constants_properties__</span><span class="pl-kos">[</span><span class="pl-s">"a"</span><span class="pl-kos">]</span> <span class="pl-c1">+</span> <span class="pl-s">'_GET_SUCCESS'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-en">undefined</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-s1">_ref</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">payload</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref</span><span class="pl-kos">.</span><span class="pl-c1">payload</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">assign</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">state</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">propertyIDs</span>: <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">union</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-c1">propertyIDs</span><span class="pl-kos">,</span> <span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">result</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-en">_defineProperty</span><span class="pl-kos">(</span> <span class="pl-s1">_handleActions</span><span class="pl-kos">,</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_0__constants_properties__</span><span class="pl-kos">[</span><span class="pl-s">"b"</span><span class="pl-kos">]</span> <span class="pl-c1">+</span> <span class="pl-s">'_GET_SUCCESS'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-en">undefined</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-s1">_ref2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">payload</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref2</span><span class="pl-kos">.</span><span class="pl-c1">payload</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">assign</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">state</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">propertyIDs</span>: <span class="pl-c">/* harmony import */</span><span class="pl-s1">__WEBPACK_IMPORTED_MODULE_2_lodash___default</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">.</span><span class="pl-en">union</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-c1">propertyIDs</span><span class="pl-kos">,</span> <span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">result</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-s1">_handleActions</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c">// &lt;- extra paren</span> <span class="pl-s1">initialState</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Looking over the commits it looks like maybe it might have been caused by this commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/webpack/webpack/commit/75b93a1438b58f4c737137c4d50081bd0c810218/hovercard" href="https://github.com/webpack/webpack/commit/75b93a1438b58f4c737137c4d50081bd0c810218"><tt>75b93a1</tt></a> I could be wrong though.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">A few large dependencies (slate / react-slate / immutable) shared by two pages are not put in a shared chunk (a large number of dependencies are the same including components). See visualization below:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/579279/38434493-260d0732-3a01-11e8-94c3-d4213cb94b5f.png"><img src="https://user-images.githubusercontent.com/579279/38434493-260d0732-3a01-11e8-94c3-d4213cb94b5f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="splitChunks: { chunks: 'all', name: false, }"><pre class="notranslate"><code class="notranslate">splitChunks: { chunks: 'all', name: false, } </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">In my understanding this should not happen by default, so I'd like to see if this is incorrect behaviour. If this is the case I'll happily provide more information to investigate.</p> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong></p> <p dir="auto">webpack version: 4.5.0.</p>
0
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5035244/2020-08-06.txt">2020-08-06.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/06/2020 21:54:23<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br> for similar or identical feature requests.</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?utf8=%E2%9C%93&amp;q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br> for existing proposed implementations of this feature.</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 if the same feature was already implemented in the<br> 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">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">Brief Summary</h1> <p dir="auto">The main idea is to allow settings some flag that will specify the number of tasks the worker should execute before exiting.<br> The reason to do so is to able to scale celery workers over Kubernetes in a reasonable matter.<br> You would create a pod with a worker set to consume 1 message and then exiting, in Kubernetes you will create a job for each message in the broker queue that will start that said pod.<br> The current way to do something like that is kinda ugly since the auto scaler of Kubernetes might decide to scale down a worker that is currently running and in long-running tasks that can be problematic</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <h2 dir="auto">Proposed UI/UX</h2> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://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"> 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"> 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"> 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"> 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" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <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=""><pre class="notranslate"><code class="notranslate"></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>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</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"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Hi,<br> We have an issue when we create a python exe file for our app. The app run one celery worker but the exe run infinite number of workers.<br> It's a blocking point for us</p>
0
<p dir="auto">I think, it would be nice to define <code class="notranslate">isa(T)</code> to return a curried version, because it's consistent with similar functions like <code class="notranslate">in</code> and often useful in <code class="notranslate">any</code> or <code class="notranslate">all</code>. It's a builtin function, so this would probably require some small changes, but it's already possible to shadow <code class="notranslate">isa</code> locally, so I believe this should be doable.</p>
<p dir="auto">It would be nice to have a single argument <code class="notranslate">isa</code> for cleaner filtering code.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="filter(x -&gt; !isa(x, AbstractFloat), [1, 2.0]) # could become filter(!isa(AbstractFloat), [1, 2.0])"><pre class="notranslate"><span class="pl-c1">filter</span>(x <span class="pl-k">-&gt;</span> <span class="pl-k">!</span><span class="pl-c1">isa</span>(x, AbstractFloat), [<span class="pl-c1">1</span>, <span class="pl-c1">2.0</span>]) <span class="pl-c"><span class="pl-c">#</span> could become</span> <span class="pl-c1">filter</span>(<span class="pl-k">!</span><span class="pl-c1">isa</span>(AbstractFloat), [<span class="pl-c1">1</span>, <span class="pl-c1">2.0</span>])</pre></div> <p dir="auto">This would provide some consistency with other functions, such as <code class="notranslate">isequal</code>, but since <code class="notranslate">isa</code> is a builtin function, defining other variants doesn't seem trivial.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; Core.isa(::Type{T}) where {T} = (x) -&gt; isa(x, T) ERROR: cannot add methods to a builtin function"><pre class="notranslate">julia<span class="pl-k">&gt;</span> Core<span class="pl-k">.</span><span class="pl-en">isa</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>) <span class="pl-k">where</span> {T} <span class="pl-k">=</span> (x) <span class="pl-k">-&gt;</span> <span class="pl-c1">isa</span>(x, T) ERROR<span class="pl-k">:</span> cannot add methods to a builtin <span class="pl-k">function</span></pre></div>
1
<h3 dir="auto">Issue summary</h3> <p dir="auto">When multiple 3d quiver arrows are plotted, using different colours, the arrow heads and tails have different colours. The two ticks of the arrow heads also differ in colour.</p> <h3 dir="auto">Sample code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt %matplotlib notebook # Three unit vectors x = [1,0,0] y = [0,1,0] z = [0,0,1] ax = plt.figure().add_subplot(projection='3d') # The documentation of quiver says that additional kwargs are delegated to LineCollection # colors parameter of LineCollection, as per documentation, takes a sequence of RGBA tuples. ax.quiver(0,0,0,x,y,z,colors=[(1,0,0,1),(0,1,0,1),(0,0,1,1)]) # red, green and blue, with alpha=1.0 ax.set_xlabel('x') ax.set_ylabel('y') ax.set_zlabel('z') ax.set_xlim(-2,2) ax.set_ylim(-2,2) ax.set_zlim(-2,2) # ax.quiver(0,0,0,x,y,z,colors=['r','g','b']) shows similar results"><pre class="notranslate"><code class="notranslate">import numpy as np import matplotlib.pyplot as plt %matplotlib notebook # Three unit vectors x = [1,0,0] y = [0,1,0] z = [0,0,1] ax = plt.figure().add_subplot(projection='3d') # The documentation of quiver says that additional kwargs are delegated to LineCollection # colors parameter of LineCollection, as per documentation, takes a sequence of RGBA tuples. ax.quiver(0,0,0,x,y,z,colors=[(1,0,0,1),(0,1,0,1),(0,0,1,1)]) # red, green and blue, with alpha=1.0 ax.set_xlabel('x') ax.set_ylabel('y') ax.set_zlabel('z') ax.set_xlim(-2,2) ax.set_ylim(-2,2) ax.set_zlim(-2,2) # ax.quiver(0,0,0,x,y,z,colors=['r','g','b']) shows similar results </code></pre></div> <h3 dir="auto">Original output</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/79497264/118389478-c93bba00-b647-11eb-9d76-b4914712bf51.png"><img src="https://user-images.githubusercontent.com/79497264/118389478-c93bba00-b647-11eb-9d76-b4914712bf51.png" alt="Question12RGBColours" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected output</h3> <p dir="auto">Each arrow, head to tail, should be of a single colour.</p> <h3 dir="auto">Versions</h3> <p dir="auto">Matplotlib: 3.4.1<br> Python: 3.8.5<br> Platform: Jupyter Notebook version 6.1.4</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">The color of the 3D arrow head does not match that of the arrow body. (In fact, the two segments of head itself don't even match.)</p> <p dir="auto">Not sure if it is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="343568683" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11746" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/11746/hovercard" href="https://github.com/matplotlib/matplotlib/issues/11746">#11746</a>, so I posted it separately just to make things clearer.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D x = np.zeros(10) y = np.zeros(10) z = np.arange(10.) dx = np.zeros(10) dy = np.arange(10.) dz = np.zeros(10) fig = plt.figure() ax = fig.gca(projection='3d') arrow_color = plt.cm.Reds(dy/dy.max()) ax.quiver(x, y, z, dx, dy, dz, colors=arrow_color) ax.set_ylim(0,10) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">10</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">10</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">10.</span>) <span class="pl-s1">dx</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">10</span>) <span class="pl-s1">dy</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">10.</span>) <span class="pl-s1">dz</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">10</span>) <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>) <span class="pl-s1">arrow_color</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-s1">cm</span>.<span class="pl-v">Reds</span>(<span class="pl-s1">dy</span><span class="pl-c1">/</span><span class="pl-s1">dy</span>.<span class="pl-en">max</span>()) <span class="pl-s1">ax</span>.<span class="pl-en">quiver</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">dx</span>, <span class="pl-s1">dy</span>, <span class="pl-s1">dz</span>, <span class="pl-s1">colors</span><span class="pl-c1">=</span><span class="pl-s1">arrow_color</span>) <span class="pl-s1">ax</span>.<span class="pl-en">set_ylim</span>(<span class="pl-c1">0</span>,<span class="pl-c1">10</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3490251/43104856-ae975e88-8e87-11e8-827f-5d7e7ae07c14.png"><img src="https://user-images.githubusercontent.com/3490251/43104856-ae975e88-8e87-11e8-827f-5d7e7ae07c14.png" alt="test_arrow_head_color" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The entire arrow should have a single color.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: macOS 10.13.6</li> <li>Matplotlib version: 2.2.2</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): MacOSX</li> <li>Python version: 2.7.15</li> <li>Jupyter version (if applicable): 5.6.0</li> <li>Other libraries:</li> </ul> <p dir="auto">matplotlib and Python were installed with Anaconda.</p>
1
<p dir="auto">For previous discussion, see: <a href="https://groups.google.com/forum/#!topic/julia-users/FBmU-mxQ0k4" rel="nofollow">https://groups.google.com/forum/#!topic/julia-users/FBmU-mxQ0k4</a></p> <p dir="auto">My request is to have functionality to be able to initialize a vector of size <code class="notranslate">N</code> and type <code class="notranslate">T</code> using the <code class="notranslate">Vector(T, N)</code> command. This would be equivalent to the current <code class="notranslate">Array(T, N)</code>. The reason for this is that it if I have a function taking a <code class="notranslate">Vector</code> argument it feels nice to create the vector I send in to the function using a <code class="notranslate">Vector</code> constructor. Same for matrices.</p> <p dir="auto">I tried to implement it myself like this (and in some other ways) but it is not working:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Base.call{T}(::Vector{T}, size::Int) = Array(T, size)"><pre class="notranslate">Base<span class="pl-k">.</span><span class="pl-en">call</span><span class="pl-c1">{T}</span>(<span class="pl-k">::</span><span class="pl-c1">Vector{T}</span>, size<span class="pl-k">::</span><span class="pl-c1">Int</span>) <span class="pl-k">=</span> <span class="pl-c1">Array</span>(T, size)</pre></div>
<p dir="auto">Both Dict and Array are parametric types. Constructing a Dict and an Array of variable size differs markedly, though:<br> * <code class="notranslate">Dict{TypeA,TypeB}()</code><br> * <code class="notranslate">Array(Type)</code> while <code class="notranslate">Array{Type}()</code> doesn't work<br> This creates some confusion for people new to the language – also I think its inconsistent design.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jthoms" rel="nofollow">John Thoms</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7404?redirect=false" rel="nofollow">SPR-7404</a></strong> and commented</p> <p dir="auto">org.springframework.jms.support.converter.JsonMessageConverter would handle marshalling of JMS payloads similiar to MappingJacksonHttpMessageConverter for http and<br> spring-amqp/org.springframework.amqp.support.converter.JsonMessageConverter</p> <hr> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?p=311501" rel="nofollow">http://forum.springsource.org/showthread.php?p=311501</a></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="398105485" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11909" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11909/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11909">#11909</a> Add JsonMessageConvertor to Spring JMS from Spring Extensions project SE-AMQP (<em><strong>"is duplicated by"</strong></em>)</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/1adf82503bf76142914ef423355aea6d8af7e247/hovercard" href="https://github.com/spring-projects/spring-framework/commit/1adf82503bf76142914ef423355aea6d8af7e247"><tt>1adf825</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/7ec9292e549e8e3177e40d08f0743c0175f70ec7/hovercard" href="https://github.com/spring-projects/spring-framework/commit/7ec9292e549e8e3177e40d08f0743c0175f70ec7"><tt>7ec9292</tt></a></p> <p dir="auto">1 votes, 1 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=michael.isvy" rel="nofollow">Michael Isvy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6944?redirect=false" rel="nofollow">SPR-6944</a></strong> and commented</p> <p dir="auto">Currently, if I need to write a form that links to my web application, I usually write it that way:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;c:url value=&quot;/client&quot; var=&quot;form_url&quot;/&gt; &lt;form:form action=&quot;${form_url}&quot;&gt; ... &lt;/form:form&gt;"><pre class="notranslate">&lt;<span class="pl-ent">c</span><span class="pl-ent">:</span><span class="pl-ent">url</span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>/client<span class="pl-pds">"</span></span> <span class="pl-e">var</span>=<span class="pl-s"><span class="pl-pds">"</span>form_url<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">form</span><span class="pl-ent">:</span><span class="pl-ent">form</span> <span class="pl-e">action</span>=<span class="pl-s"><span class="pl-pds">"</span>${form_url}<span class="pl-pds">"</span></span>&gt; ... &lt;/<span class="pl-ent">form</span><span class="pl-ent">:</span><span class="pl-ent">form</span>&gt;</pre></div> <p dir="auto">Generated HTML is as follows:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form id=&quot;command&quot; action=&quot;/myWebApp/client&quot; method=&quot;post&quot;&gt; Inside form &lt;/form&gt;"><pre class="notranslate">&lt;<span class="pl-ent">form</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>command<span class="pl-pds">"</span></span> <span class="pl-e">action</span>=<span class="pl-s"><span class="pl-pds">"</span>/myWebApp/client<span class="pl-pds">"</span></span> <span class="pl-e">method</span>=<span class="pl-s"><span class="pl-pds">"</span>post<span class="pl-pds">"</span></span>&gt; Inside form &lt;/<span class="pl-ent">form</span>&gt;</pre></div> <p dir="auto">It would be easier if the form tag could include the context path out of the box (for any path starting with "/" for instance). In that way, I would not need to use the &lt;c:url /&gt; tag anymore.</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="398114482" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13326" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13326/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13326">#13326</a> Form tag should prepend the contextPath and servletPath if not present (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<p dir="auto">Tried to get help from mailing list, but nobody responded. See <a href="https://groups.google.com/forum/?fromgroups#!topic/symfony2/Ib7pMtVpV3Q" rel="nofollow">https://groups.google.com/forum/?fromgroups#!topic/symfony2/Ib7pMtVpV3Q</a> for text explanations</p> <p dir="auto">I wrote simple test controller + test case to check this issue and it's failing.<br> See <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/biozshock/symfony-standard/commit/0bcd739bc4c1e1bc1dc55c0598bb0d6831b40ef6/hovercard" href="https://github.com/biozshock/symfony-standard/commit/0bcd739bc4c1e1bc1dc55c0598bb0d6831b40ef6">biozshock/symfony-standard@<tt>0bcd739</tt></a></p> <p dir="auto">Functionality was added at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/10998586787f31e5d1e33d4e21035c83cbe23489/hovercard" href="https://github.com/symfony/symfony/commit/10998586787f31e5d1e33d4e21035c83cbe23489"><tt>1099858</tt></a> but i think tests do not fully cover it.</p> <p dir="auto">Or maybe I'm doing something in a wrong way?</p>
<p dir="auto">While trying out the new form PATCH feature, I ran into a bug:</p> <p dir="auto">Say for instance you have a form with two children: firstName, lastName,</p> <p dir="auto">and you PATCH with this data: <code class="notranslate">array('firstName' =&gt; 'Hank')</code></p> <p dir="auto">now the "submit" method is never called on the child "lastName". Now there's a problem, because Form::isValid() only returns <code class="notranslate">true</code> if <code class="notranslate">$this-&gt;submitted</code> is <code class="notranslate">true</code>. However, this is <code class="notranslate">false</code> for the "lastName" child. A form with children, in turn, will only return <code class="notranslate">true</code>, if all of it's children are <code class="notranslate">true</code>, which, now, is not the case.</p>
1
<p dir="auto">Considering this code:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use Symfony\Component\OptionsResolver\Options; use Symfony\Component\OptionsResolver\OptionsResolver; $resolver = new OptionsResolver(); $resolver-&gt;setDefaults([ 'foo' =&gt; 1, 'bar' =&gt; null, ]); $options = $resolver-&gt;resolve([ 'bar' =&gt; function (Options $options) { return $options['foo']; } ]); var_dump($options);"><pre class="notranslate"><span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">OptionsResolver</span>\<span class="pl-v">Options</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">OptionsResolver</span>\<span class="pl-v">OptionsResolver</span>; <span class="pl-s1"><span class="pl-c1">$</span>resolver</span> = <span class="pl-k">new</span> <span class="pl-v">OptionsResolver</span>(); <span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-&gt;<span class="pl-en">setDefaults</span>([ <span class="pl-s">'foo'</span> =&gt; <span class="pl-c1">1</span>, <span class="pl-s">'bar'</span> =&gt; <span class="pl-c1">null</span>, ]); <span class="pl-s1"><span class="pl-c1">$</span>options</span> = <span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-&gt;<span class="pl-en">resolve</span>([ <span class="pl-s">'bar'</span> =&gt; <span class="pl-k">function</span> (<span class="pl-smi"><span class="pl-smi">Options</span></span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>) { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'foo'</span>]; } ]); var_dump(<span class="pl-s1"><span class="pl-c1">$</span>options</span>);</pre></div> <p dir="auto">Result <strong>before</strong> 2.6:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array (size=2) 'foo' =&gt; int 1 'bar' =&gt; int 1"><pre class="notranslate"><code class="notranslate">array (size=2) 'foo' =&gt; int 1 'bar' =&gt; int 1 </code></pre></div> <p dir="auto">Result <strong>after</strong> 2.6:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array (size=2) 'foo' =&gt; int 1 'bar' =&gt; object(Closure)[2242]"><pre class="notranslate"><code class="notranslate">array (size=2) 'foo' =&gt; int 1 'bar' =&gt; object(Closure)[2242] </code></pre></div> <p dir="auto">I know Closure resolution is made for default options depending on others but sometimes it could be useful to reuse a default option.</p>
<p dir="auto">I'll provide a link to my Stack Overflow question if anyone is interested in more details. To sum it up I'm using postman to send POST requests to <strong>app.php/myroute/login</strong> which are converted into GET requests. If I post to just <strong>/myroute/login</strong> everything works fine. I post to the original url but move the .htaccess file and xdebug shows the method as being post. I don't think many people will access the application through app.php so I would say this is very low priority but it gave me a bit of trouble, I was accessing through app_dev.php and decided to remove _dev which lead me to this. People may come across this though in the future so I figured it would be good to submit it.</p> <p dir="auto"><a href="http://stackoverflow.com/questions/31280841/symfony2-app-php-receiving-post-request-as-get-app-dev-php-works-fine/31281297#31281297" rel="nofollow">My Stack Overflow question</a></p>
0
<p dir="auto">After update atom to 0.189 I have several issues with clipboard.</p> <ol dir="auto"> <li>If I copy something into clipboard from <code class="notranslate">atom</code> editor then I can't paste it in any program except atom. For example into <code class="notranslate">gedit</code>.</li> <li>Even worse. If I try to paste it into some text field of any webpage opened in <code class="notranslate">Google Chrome 41</code> then Chrome's tab freezes for a long time (several minutes) and then crashes. If I even try to copy some text from webpage opened in <code class="notranslate">Chrome</code> while clipboard already contains text copied from <code class="notranslate">atom</code> then <code class="notranslate">Chrome</code> still freezes (if clipboard contains any value not copied from <code class="notranslate">atom</code> then all is ok).</li> </ol>
<p dir="auto">I'm using Atom ver. 0.189.0 on Ubuntu 14.04.2 LTS. When I copy a piece of text in atom and I try to paste it the right-click menu either won't show up or will show up without giving me option to paste. The paste shortcut doesn't work either and it creates issues even if I try to copy and paste text from other programs (after I have coping something from atom). I have disable all the extra plugins, so it isn't a plugin issue. I didn't had this issue with the previous version (I am using webupd8 ppa). If I do a right click on a place where there isn't a text entry (meaning a place where it doesn't support paste anyway) the right click menu appears fine.</p>
1
<p dir="auto">by <strong><a href="mailto:eric.atienza@mydoceapower.com">eric.atienza@mydoceapower.com</a></strong>:</p> <pre class="notranslate">What steps will reproduce the problem? @see <a href="http://play.golang.org/p/unO74If5mD" rel="nofollow">http://play.golang.org/p/unO74If5mD</a> What is the expected output? in the expression "a.b.c.Check()" a is not nil, but b is. I expect a run time panic to occur: "If x is of pointer or interface type and has the value nil, assigning to, evaluating, or calling x.f causes a run-time panic." (spec extract) What do you see instead? the method Check() is called instead. Which compiler are you using? 6g Which operating system are you using? Linux 3.5.0-18-generic Which version are you using? (run 'go version')1.0.3</pre>
<h3 dir="auto">What version of Go are you using (go version)?</h3> <p dir="auto"><code class="notranslate">go version go1.5beta2 darwin/amd64</code></p> <h3 dir="auto">What operating system and processor architecture are you using?</h3> <p dir="auto">OS X 10.10.4 (64-bit)</p> <h3 dir="auto">What did you do?</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="go get -u github.com/shurcooL/go-get-issue-cgo"><pre class="notranslate"><code class="notranslate">go get -u github.com/shurcooL/go-get-issue-cgo </code></pre></div> <h3 dir="auto">What did you expect to see?</h3> <p dir="auto">No output, successful go get (fetch, build and install).</p> <h3 dir="auto">What did you see instead?</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package github.com/shurcooL/go-get-issue-cgo imports C: unrecognized import path &quot;C&quot;"><pre class="notranslate"><code class="notranslate">package github.com/shurcooL/go-get-issue-cgo imports C: unrecognized import path "C" </code></pre></div> <h2 dir="auto">Likely Cause</h2> <p dir="auto">I haven't verified it, but I am quite certain (it's very likely) this is a regression caused by the code change in <a href="https://go-review.googlesource.com/#/c/12192/" rel="nofollow">https://go-review.googlesource.com/#/c/12192/</a>.</p> <p dir="auto">After writing up this report, I've realized this issue is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="95540206" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/11738" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/11738/hovercard" href="https://github.com/golang/go/issues/11738">#11738</a> and can be closed right away (filing just in case some additional information here is helpful).</p>
0
<p dir="auto">Importing numpy raises AttributeError when using latest version, 1.16.0.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">import numpy as np</p> <h2 dir="auto">Gives error traceback:</h2> <hr> <p dir="auto">AttributeError Traceback (most recent call last)<br> in <br> ----&gt; 1 from sklearn.datasets import make_classification<br> 2 from sklearn.preprocessing import StandardScaler,label_binarize<br> 3 from sklearn.svm import SVC, LinearSVC<br> 4 from sklearn.multiclass import OneVsRestClassifier<br> 5 from sklearn.pipeline import make_pipeline</p> <p dir="auto">~/.local/lib/python3.6/site-packages/sklearn/<strong>init</strong>.py in <br> 62 else:<br> 63 from . import __check_build<br> ---&gt; 64 from .base import clone<br> 65 from .utils._show_versions import show_versions<br> 66</p> <p dir="auto">~/.local/lib/python3.6/site-packages/sklearn/base.py in <br> 8 from collections import defaultdict<br> 9<br> ---&gt; 10 import numpy as np<br> 11 from scipy import sparse<br> 12 from .externals import six</p> <p dir="auto">~/.local/lib/python3.6/site-packages/numpy/<strong>init</strong>.py in <br> 140 from . import _distributor_init<br> 141<br> --&gt; 142 from . import core<br> 143 from .core import *<br> 144 from . import compat</p> <p dir="auto">~/.local/lib/python3.6/site-packages/numpy/core/<strong>init</strong>.py in <br> 57 from . import numerictypes as nt<br> 58 multiarray.set_typeDict(nt.sctypeDict)<br> ---&gt; 59 from . import numeric<br> 60 from .numeric import *<br> 61 from . import fromnumeric</p> <p dir="auto">~/.local/lib/python3.6/site-packages/numpy/core/numeric.py in <br> 3091 from .umath import *<br> 3092 from .numerictypes import *<br> -&gt; 3093 from . import fromnumeric<br> 3094 from .fromnumeric import *<br> 3095 from . import arrayprint</p> <p dir="auto">~/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py in <br> 15 from . import numerictypes as nt<br> 16 from .numeric import asarray, array, asanyarray, concatenate<br> ---&gt; 17 from . import _methods<br> 18<br> 19 <em>dt</em> = nt.sctype2char</p> <p dir="auto">~/.local/lib/python3.6/site-packages/numpy/core/_methods.py in <br> 156 )<br> 157<br> --&gt; 158 _NDARRAY_ARRAY_FUNCTION = mu.ndarray.<strong>array_function</strong><br> 159<br> 160 def _array_function(self, func, types, args, kwargs):</p> <p dir="auto">AttributeError: type object 'numpy.ndarray' has no attribute '<strong>array_function</strong>'</p>
<p dir="auto">I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4.<br> The most closely related issue I could find is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="363344806" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/12028" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/12028/hovercard" href="https://github.com/numpy/numpy/issues/12028">#12028</a>.</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 numpy as np"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span></pre></div> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Traceback (most recent call last): File &quot;/home/trey/script.py&quot;, line 6, in &lt;module&gt; import numpy as np File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py&quot;, line 142, in &lt;module&gt; from . import core File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py&quot;, line 59, in &lt;module&gt; from . import numeric File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py&quot;, line 3093, in &lt;module&gt; from . import fromnumeric File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py&quot;, line 17, in &lt;module&gt; from . import _methods File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py&quot;, line 158, in &lt;module&gt; _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__ AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'"><pre class="notranslate"><code class="notranslate"> Traceback (most recent call last): File "/home/trey/script.py", line 6, in &lt;module&gt; import numpy as np File "/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in &lt;module&gt; from . import core File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in &lt;module&gt; from . import numeric File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in &lt;module&gt; from . import fromnumeric File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in &lt;module&gt; from . import _methods File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in &lt;module&gt; _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__ AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__' </code></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.16.0<br> 3.6.7 (default, Oct 22 2018, 11:32:17)<br> [GCC 8.2.0]</p>
1
<p dir="auto">It'd be awesome if the navigation tree did basically the same thing as github, letting you easily skip through multiple levels of nested trees. (This turns out to be a super common thing with Java code)</p> <p dir="auto">Cheers! <g-emoji class="g-emoji" alias="heart" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2764.png">❤️</g-emoji></p>
<p dir="auto">I occasionally have to work on Java projects for work. Java essentially requires project hierarchies like the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="\project \src \com \example \project \app source1.java source2.java source3.java \library-foo source1.java source2.java source3.java"><pre class="notranslate"><code class="notranslate">\project \src \com \example \project \app source1.java source2.java source3.java \library-foo source1.java source2.java source3.java </code></pre></div> <p dir="auto">Java IDEs have a feature in their tree-view controls to collapse directories that only have one entry in them underneath <code class="notranslate">src</code>. So the above would look like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="\project \src \com.example.project \app source1.java source2.java source3.java \library-foo source1.java source2.java source3.java"><pre class="notranslate"><code class="notranslate">\project \src \com.example.project \app source1.java source2.java source3.java \library-foo source1.java source2.java source3.java </code></pre></div> <p dir="auto">I'd like to see Atom tree-view support this feature as well on an opt-in basis.</p>
1