# V8.1.0 hangs up while editing a source with unsaved changes

**URL:** <https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [September 3, 2021, 3:03am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940 "2021-09-03T03:03:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 3, 2021, 3:03am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940/1 "2021-09-03T03:03:36Z")

</div>

#### Please let us know what you are using Katalon Studio for?

1. I have currently applied Katalon Studio in my project

#### How would your work be affected if this issue has not been resolved?

1. I cannot continue my job and have to work on something else while awaiting your response

#### Operating System

- macOS BigSur 11.5.2

#### Katalon Studio Version

v8.1.0

#### Katalon Studio logs

[log.txt](https://forum.katalon.com/uploads/short-url/3locEbzapuPhg462YfEAOfCkN5j.txt) (209.4 KB)

> I have uploaded wrong .log file 3 times. This one is correct.

#### Screenshots / Videos

 ![スクリーンショット 2021-09-03 11.44.42](https://europe1.discourse-cdn.com/katalon/original/3X/0/d/0dcc26c6749e9efd9d32f5ef23d6a0ccb9671abe.jpeg)

#### Environment (for Web testing):

not relevant

#### Environment (for Mobile testing):

not relevant

#### Steps to reproduce:

With v8.1.0, while editing a source code, Katalon Studio suddenly hangs up. KS occupied high CPU usage. A progress indicator

 ![sunadokei](https://europe1.discourse-cdn.com/katalon/original/3X/8/a/8a98d9aa8f87e0aa74e991e00b3a9f7ea5f69c8b.jpeg) came up and stayed, never disappeared. I could not interact with KS. No way other than forcibly terminating it by killing the OS process. See the attached screenshot.

The lastest incident I encountered this, I was editing a Keyword source of my project [GitHub - kazurayam/TestClosure: Proof of Concept "TestClosure". This enables executing multiple Groovy Closures simultaneously in a Test Case in Katalon Studio.](https://github.com/kazurayam/TestClosure). But I experienced the same incident in 2 other projects. So I believe the cause is there in KS, not in my projects.

I did not experience this in v8.0.x and older versions. It’s a new incident in v8.1.0.

How to reproduce? When a Keyword source has some _unsaved changes_ (possibly the code may have syntactical/semantical error as Groovy code interimly), and when i _move the cursor over the editor pane_, KS suddenly hangs. I guess that _Groovy compiler, Auto code completion, or Code suggest — those features that run behind the editor in the Eclipse layer_ triggers this incident.

#### Expected Behavior:

KS should never hang up.

#### Actual Behavior:

v8.1.0 sometimes hangs up. How frequent? — well, after 30 minutes of editing work, I encountered this. I think it’s too often. KS must not hang.

---

<div class="post-metadata">

**Author:** ![chrisstu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chrisstu/32/18464_2.png) [@chrisstu](https://forum.katalon.com/u/chrisstu)\
**Post date:** [September 7, 2021, 7:02am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940/2 "2021-09-07T07:02:07Z")

</div>

Hi [kazurayam](https://forum.katalon.com/u/kazurayam),

CPU spike can sometimes happen if you run a bunch of parallel tests altogether.  
We are updating KS to increase performance as we speak and are expected to ship fully in the incoming releases. Stay tuned and let’s get back to this if the problem happen again.

Thank you,  
Chris

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 7, 2021, 7:42am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940/3 "2021-09-07T07:42:13Z")

</div>

> [@chrisstu](#):
>
> if you run a bunch of parallel tests altogether.

No. I was not executing parallel tests at all when I encountered the incident. I was just editing a few of Groovy sources with editor in KS v8.1.0.

> [@chrisstu](#):
>
> We are updating KS to increase performance

Your work for performance improvement, I am sure, would have nothing to do with the hangup I raised here.

Have you checked the .log I attached? In the .log you can find

```auto
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.eclipse.jface.text.rules.BufferedRuleBasedScanner.read(BufferedRuleBasedScanner.java:118)
	at org.eclipse.jface.text.rules.WhitespaceRule.evaluate(WhitespaceRule.java:72)
	at org.eclipse.jface.text.rules.RuleBasedScanner.nextToken(RuleBasedScanner.java:165)
	at org.eclipse.jdt.internal.ui.text.AbstractJavaScanner.nextToken(AbstractJavaScanner.java:196)
	at org.eclipse.jface.text.rules.DefaultDamagerRepairer.createPresentation(DefaultDamagerRepairer.java:179)
	at org.eclipse.jface.text.presentation.PresentationReconciler.createPresentation(PresentationReconciler.java:436)
	at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:549)
	at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:547)
	at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:215)
	at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2709)
	at org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3353)
	at org.eclipse.jface.text.source.AnnotationPainter.invalidateTextPresentation(AnnotationPainter.java:970)
	at org.eclipse.jface.text.source.AnnotationPainter.updatePainting(AnnotationPainter.java:952)
	at org.eclipse.jface.text.source.AnnotationPainter.lambda$0(AnnotationPainter.java:1075)
	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:4124)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3791)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1158)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1047)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
	at com.kms.katalon.core.application.WorkbenchApplicationStarter.start(WorkbenchApplicationStarter.java:23)
	at com.kms.katalon.application.Application.runGUI(Application.java:191)
	at com.kms.katalon.application.Application.start(Application.java:102)
	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 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.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:1447)

```

The Exception was thrown by the Eclipse GUI layer. In that layer there must be a real cause of hangups, I think.

---

<div class="post-metadata">

**Author:** ![nam.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nam.nguyen/32/18640_2.png) [@nam.nguyen](https://forum.katalon.com/u/nam.nguyen)\
**Post date:** [September 15, 2021, 2:34am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940/6 "2021-09-15T02:34:24Z")

</div>

Assigned @duyluong on September 15, 2021, 2:34am UTC



---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 16, 2021, 6:04am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940/7 "2021-09-16T06:04:45Z")

</div>

I encountered a similar issue (GUI hangs up) in other product, not Katalon Studio. This indicates that I have something wrong in mac OSX, or in the hardware (possibly the touch pad is nearly breaking down).

I will close this post.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 16, 2021, 6:04am UTC](https://forum.katalon.com/t/v8-1-0-hangs-up-while-editing-a-source-with-unsaved-changes/57940/8 "2021-09-16T06:04:55Z")

</div>

Closed on September 16, 2021, 6:04am UTC


