Status Update
Comments
ju...@google.com <ju...@google.com>
vi...@google.com <vi...@google.com> #2
Steps to capture the thread dumps are listed at
lb...@gmail.com <lb...@gmail.com> #3
As for running the command, attached.
vi...@google.com <vi...@google.com> #4
ju...@google.com <ju...@google.com>
lb...@gmail.com <lb...@gmail.com> #5
See attached.
This is what it says:
java.lang.AssertionError: class com.android.tools.idea.resources.base.BasicValueResourceItem
at com.android.tools.idea.editors.strings.StringResource.<init>(StringResource.java:68)
at com.android.tools.idea.editors.strings.StringResourceData.lambda$create$0(StringResourceData.java:64)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at com.google.common.collect.CollectSpliterators$1WithCharacteristics.lambda$forEachRemaining$1(CollectSpliterators.java:64)
at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)
at com.google.common.collect.CollectSpliterators$1WithCharacteristics.forEachRemaining(CollectSpliterators.java:64)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at com.android.tools.idea.editors.strings.StringResourceData.create(StringResourceData.java:64)
at com.android.tools.idea.editors.strings.table.StringResourceTableModel.<init>(StringResourceTableModel.java:56)
at com.android.tools.idea.editors.strings.ResourceLoadingTask.onSuccess(ResourceLoadingTask.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.finishTask(CoreProgressManager.java:507)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.lambda$run$0(CoreProgressManager.java:426)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:312)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:433)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:824)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:773)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:412)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:411)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
ju...@google.com <ju...@google.com> #6
Is there anything atypical about your string resources? If you can send me your string resource files that would help immensely.
lb...@gmail.com <lb...@gmail.com> #7
Please email me so that I can email you.
nd...@gmail.com <nd...@gmail.com> #8
Android Studio 4.0 Canary 6
Build #AI-193.2956.37.40.6052267, built on December 5, 2019
Runtime version: 1.8.0_212-release-1586-b4-5784211 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.2
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins:
ng...@gmail.com <ng...@gmail.com> #9
ju...@google.com <ju...@google.com>
ju...@google.com <ju...@google.com> #10
I downgraded the assertion failure to a logger warning. Unfortunately the change didn't cherry pick cleanly into 4.0. Fortunately assertions will be disabled in the RCs.
I still don't know why we're getting BasicValueResourceItems out of the resource folder repositories in the first place. I filed
A minimal reproducible test case would help us out immensely
lb...@gmail.com <lb...@gmail.com> #11
Android Studio 4.1 Canary 4
Build #AI-193.6494.35.41.6325121, built on March 24, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1970M
Cores: 12
Registry: ide.new.welcome.screen.force=true, debugger.watches.in.variables=false
Non-Bundled Plugins: String Manipulation, org.jetbrains.kotlin, ignaciotcrespo.github.com.vector-drawable-thumbnails, org.intellij.plugins.markdown
ju...@google.com <ju...@google.com> #12
Expect the fix in 4.1 Canary 6
lb...@gmail.com <lb...@gmail.com> #13
:(
ju...@google.com <ju...@google.com> #14
I honestly don't know if this will work but you can try disabling assertions for the responsible class in the meantime. From the Welcome to Android Studio window:
Configure - Edit Custom VM Options...
and add
-da:com.android.tools.idea.editors.strings.StringResource
Let us know if that works
lb...@gmail.com <lb...@gmail.com> #15
Anyway, added this, it got fixed.
What does it do? Why isn't it working by default?
ju...@google.com <ju...@google.com> #16
That option disables a failing assertion in com.android.tools.idea.editors.strings.StringResource.
In Canary 6 you can get rid of that custom option because I downgraded the assertion to a log warning
lb...@gmail.com <lb...@gmail.com> #17
ju...@google.com <ju...@google.com> #18
PsiResourceItems are postparse representations of XML. BasicValueResourceItems are not. It's faster to access XML semantics from a postparse abstraction.
lb...@gmail.com <lb...@gmail.com> #19
Keep the good work !
:)
ju...@google.com <ju...@google.com> #20
Thank you for all the bug reports!
mr...@gmail.com <mr...@gmail.com> #21
ow...@gmail.com <ow...@gmail.com> #22
Android Studio 4.0.1
Build #AI-193.6911.18.40.6626763, built on June 25, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.6
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.new.welcome.screen.force=true, debugger.watches.in.variables=false
Non-Bundled Plugins: com.siimkinks.sqlitemagic
sm...@gmail.com <sm...@gmail.com> #23
-da:com.android.tools.idea.editors.strings.StringResource
didn't work
st...@gmail.com <st...@gmail.com> #24
sm...@gmail.com <sm...@gmail.com> #25
sm...@gmail.com <sm...@gmail.com> #26
they are all in folders: "values-XX" with one file "strings.xml"
found it, the folders were wrong, 2 had "value-xx"
Description
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS:
Android Studio 4.0 Canary 4
Build #AI-192.6817.14.36.6008643, built on November 14, 2019
Runtime version: 1.8.0_212-release-1586-b04 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 7916M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: String Manipulation, com.github.novotnyr.gitlab-quickmr-idea-plugin, ignaciotcrespo.github.com.vector-drawable-thumbnails, com.mistamek.drawablepreview.drawable-preview
Steps to Reproduce:
1. Open strings file and go to translation tool.
The bug:
It never stops loading.
Attached video to show how long I can wait for this (and it never finished after the video, of course).