question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension randomly crashes on hovering a symbol ("Request textDocument/hover failed")

See original GitHub issue

Hi, from time to time the extension crashes when I hover with pressed control key over a symbol [1]. I can continue coding, but e.g. Goto and code completion gets unresponsive so I have to restart the Actionscript/MXML server. Unfortunately, I can’t reproduce this issue on demand. It seems to me that it happens randomly… not sure… I have to observe this a bit more. I would say I never ran into this with v0.14.0.

I am using Flex with AIR on Windows7 here,

Thanks! Olaf

[1]

[Error - 12:58:20 PM] Request textDocument/hover failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2214)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4053)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986)
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4992)
	at org.apache.royale.compiler.internal.projects.CompilerProject.getCacheForScope(CompilerProject.java:676)
	at org.apache.royale.compiler.internal.definitions.InterfaceDefinition.resolveExtendedInterfaces(InterfaceDefinition.java:122)
	at org.apache.royale.compiler.internal.definitions.TypeDefinitionBase$TypeIterator.pushChildren(TypeDefinitionBase.java:290)
	at org.apache.royale.compiler.internal.definitions.TypeDefinitionBase$TypeIterator.next(TypeDefinitionBase.java:217)
	at org.apache.royale.compiler.internal.definitions.TypeDefinitionBase$TypeIterator.next(TypeDefinitionBase.java:175)
	at org.apache.royale.compiler.internal.scopes.TypeScope.getPropertyForScopeChain(TypeScope.java:262)
	at org.apache.royale.compiler.internal.scopes.ScopeView.getPropertyForScopeChain(ScopeView.java:72)
	at org.apache.royale.compiler.internal.scopes.ASScope.findProperty(ASScope.java:1119)
	at org.apache.royale.compiler.internal.scopes.ASScope.findProperty(ASScope.java:1061)
	at org.apache.royale.compiler.internal.scopes.ASScope.findProperty(ASScope.java:1277)
	at org.apache.royale.compiler.internal.scopes.ASScope.findProperty(ASScope.java:999)
	at org.apache.royale.compiler.internal.scopes.ASScopeCache.findProperty(ASScopeCache.java:153)
	at org.apache.royale.compiler.internal.scopes.ASScope.findProperty(ASScope.java:1428)
	at org.apache.royale.compiler.internal.tree.as.IdentifierNode.resolve(IdentifierNode.java:394)
	at com.as3mxml.vscode.ActionScriptTextDocumentService.actionScriptHoverWithNode(ActionScriptTextDocumentService.java:3389)
	at com.as3mxml.vscode.ActionScriptTextDocumentService.actionScriptHover(ActionScriptTextDocumentService.java:3370)
	at com.as3mxml.vscode.ActionScriptTextDocumentService.lambda$hover$1(ActionScriptTextDocumentService.java:526)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 5 more
Caused by: java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4052)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986)
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4992)
	at org.apache.royale.compiler.internal.scopes.ASProjectScope.addScopeToCompilationUnitScopeList(ASProjectScope.java:1310)
	at org.apache.royale.compiler.internal.projects.CompilerProject$ScopeCacheLoader.load(CompilerProject.java:107)
	at org.apache.royale.compiler.internal.projects.CompilerProject$ScopeCacheLoader.load(CompilerProject.java:96)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3628)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2336)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2295)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2208)
	... 27 more

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
olafkruegercommented, Dec 11, 2018

I am using v0.16.0 now and will observe if the issue is fixed. Thank you so much for the new release!

1reaction
joshtynjalacommented, Dec 5, 2018

Earlier today, I committed a fix for a potential multi-threading conflict. The fix will be included in the upcoming v0.16. If we’re lucky, your issue may be fixed after the update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request textDocument/hover failed. On VSCode #47736
Whenever I open the DART file in VS CODE. I am getting this issue in outputs. I tried to disable extensions and even...
Read more >
9 Ways to Get Chrome to Stop Crashing - Nira
Chrome is normally a very stable browser, but sometimes you'll get a frustrating run of crashes. We'll walk you through how to find...
Read more >
Fix Chrome if it crashes or won't open - Computer
First: Try these common Chrome crash fixes. Close other tabs, extensions, and apps.
Read more >
Google Chrome is crashing on Windows 10 - here's the fix
This crash occurs in Chrome 90 randomly and there doesn't appear to be ... Extension crashes abruptly with the error “click this balloon...
Read more >
Microsoft shares workarounds for Outlook crashing after ...
Empty Outlook identity key causing crashes (Microsoft) ... It's best if this key is set by the Office application, so it is preferred...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found