Why does intellisense crash constantly in Bonita Studio?

1
0
-1

I had a problem in 7.9.0 version, if i typed a variable, and tried to call a method, the intellisense crashed, and i got an error message.

Example #1:

Person person = new Person()

person.getA <- At this point it worked fine, however if i changed my mind, and wanted to to call a setter, when i deleted the characters back like this: person.g then my whole studio just froze.

If i was to slow, and typed person. then the same happened.

.After upgrading to 7.11.4, this problem still happens, but a lot more frequently. Now almost every time i try to use intellisense my studio just freezes.

Example #2:

I wasnt familiar with groovy, so i mainly used java code, i was really frustrated that i need to turn of intellisense, and try to write code manually, and so i tried to use just groovy script.

But before that i had scipt that i needed to finish it was as simple as this:

return somebusinessVar. <- it crashed instantly (i wanted to write something like this: somebusinessVar.getProperty())

What could cause this? I think it might be my project since everything works fine with an empty project. What can be in my project that can cause such an error?

I saw a similar question here, tried to set the content assist as someone mentioned here as a workaround, but didnt work.

Sorry for the intellisense i started with visual studio, and have a bad habit calling it like that.

Regards,

Zoltan

Comments

Submitted by thomas.bouffard on Mon, 03/01/2021 - 06:16

Hi could you precise the OS you are using and if you are using an Antivirus (if so, please provide information about it)

Can your provide the message you got about "the intellisense crashed, and i got an error message."?

Can you provide some Studio logs related to the moment where you see the slowness or what you call "Studio crash"? (https://documentation.bonitasoft.com/bonita/7.11/log-files)

Thx

Submitted by kurucsai.zoltan... on Mon, 03/01/2021 - 08:04

Hi,

Of course, im running the studio on Windows 10 pro x64, using a laptop with an 8th gen i7, and 16gigs of ram, and some kind of ssd. I dont use any antivirus programs except for the windows defender.

The alert box text:

The 'Groovy Code Completions' proposal computer from the
'org.codehaus.groovy.ecplise.codeassist' plug-in did not complete normally. The extension
has thrown a runtime exception.
to avoid this message, disable the 'org.codehaus.groovy.eclipse.codeassist' plug-in or disable the
'Groovy Proposals' category on the content assist reference page.

And the log:

!ENTRY org.eclipse.jdt.ui 2 0 2021-03-01 07:58:02.888
!MESSAGE The 'Groovy Code Completions' proposal computer from the 'org.codehaus.groovy.eclipse.codeassist' plug-in did not complete normally. The extension has thrown a runtime exception.
!STACK 0
java.util.ConcurrentModificationException
at java.base/java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
at java.base/java.util.LinkedList$ListItr.next(Unknown Source)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1205)
at org.eclipse.jdt.groovy.core.util.DepthFirstVisitor.visitClass(DepthFirstVisitor.java:168)
at org.codehaus.groovy.eclipse.codeassist.requestor.CompletionNodeFinder.visitClass(CompletionNodeFinder.java:177)
at org.eclipse.jdt.groovy.core.util.DepthFirstVisitor.visitModule(DepthFirstVisitor.java:134)
at org.codehaus.groovy.eclipse.codeassist.requestor.CompletionNodeFinder.findContentAssistContext(CompletionNodeFinder.java:118)
at org.codehaus.groovy.eclipse.codeassist.requestor.GroovyCompletionProposalComputer.createContentAssistContext(GroovyCompletionProposalComputer.java:280)
at org.codehaus.groovy.eclipse.codeassist.requestor.GroovyCompletionProposalComputer.computeCompletionProposals(GroovyCompletionProposalComputer.java:207)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:345)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:340)
at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:334)
at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:291)
at org.eclipse.jface.text.contentassist.ContentAssistant$2.lambda$0(ContentAssistant.java:2015)
at java.base/java.util.Collections$SingletonSet.forEach(Unknown Source)
at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:2014)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2011)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:578)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.lambda$0(CompletionProposalPopup.java:508)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:503)
at org.eclipse.jface.text.contentassist.ContentAssistant$AutoAssistListener.lambda$0(ContentAssistant.java:380)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3963)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3590)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
at org.eclipse.jface.window.Window.open(Window.java:799)
at org.bonitasoft.studio.expression.editor.viewer.ExpressionViewer.openEditDialog(ExpressionViewer.java:530)
at org.bonitasoft.studio.expression.editor.viewer.ExpressionViewer.editControlSelected(ExpressionViewer.java:354)
at org.bonitasoft.studio.expression.editor.viewer.ExpressionViewer$3.handleEvent(ExpressionViewer.java:330)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4175)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3988)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3587)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:660)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.bonitasoft.studio.application.BonitaStudioApplication.createAndRunWorkbench(BonitaStudioApplication.java:137)
at org.bonitasoft.studio.application.BonitaStudioApplication.start(BonitaStudioApplication.java:99)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

1 answer

1
0
-1

After a quick analysis, it looks like it could be a bug. Could you please report an issue in our Community Bug tracker, so that it can be reviewed with the engineering team ?

If you don't know how to do that, please read our FAQ

Thank you

Notifications