Katalon Studio 6.1.0 Crashing when collapsing .groovy imports

Katalon Studio
Version: 6.1.0
Build: 1

Whenever I collapse the import in my .groovy file, Katalon Studio will crash.
This happens in all my “out of the box” .groovy files created by Katalon Studio.

Is this a Bug?

Hi @GeneralChingChicken,

I saw some reports of you about Groovy Editor crash when scripting. Please share us your System Environment and attach the KS log file.

Thanks.

how can i get that KS log file

hello,

C:\KatalonStudio\Katalon6.1.10\config.metadata

and .txt file no name there

whats the mac path?

hi,
In terminal window
cd /path/where/your/KatalonStudio/config/.metadata
ls
cat filename OR less filename
OR
find / -name xxx.txt

A simple way is clicking on KS menu bar: Help -> Error Log

hs_err_pid2794.log (84.1 KB)
hs_err_pid2854.log (83.7 KB)
hs_err_pid2914.log (74.4 KB)
hs_err_pid2985.log (74.5 KB)
hs_err_pid3042.log (77.3 KB)

hs_err_pid4477.log (89.7 KB)

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-03-28 12:54:37.146
!MESSAGE
!STACK 0
java.lang.IllegalStateException: this writer hit an unrecoverable error; cannot commit
at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2950)
at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3206)
at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1119)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1162)
at com.kms.katalon.composer.components.impl.util.EntityIndexingUtil.doIndex(EntityIndexingUtil.java:175)
at com.kms.katalon.composer.project.handlers.IndexProjectHandler$1.run(IndexProjectHandler.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.IllegalStateException: unexpected docvalues type NONE for field ‘id’ (expected=SORTED). Re-index with correct docvalues type.
at org.apache.lucene.index.DocValues.checkField(DocValues.java:212)
at org.apache.lucene.index.DocValues.getSorted(DocValues.java:264)
at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getSortedDocValues(FieldComparator.java:762)
at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getLeafComparator(FieldComparator.java:767)
at org.apache.lucene.index.Sorter.sort(Sorter.java:220)
at org.apache.lucene.index.MergeState.maybeSortReaders(MergeState.java:228)
at org.apache.lucene.index.MergeState.(MergeState.java:92)
at org.apache.lucene.index.SegmentMerger.(SegmentMerger.java:57)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4301)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3889)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:588)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:626)
org.apache.lucene.index.MergePolicy$MergeException: java.lang.IllegalStateException: unexpected docvalues type NONE for field ‘id’ (expected=SORTED). Re-index with correct docvalues type.
at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:668)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:648)
Caused by: java.lang.IllegalStateException: unexpected docvalues type NONE for field ‘id’ (expected=SORTED). Re-index with correct docvalues type.
at org.apache.lucene.index.DocValues.checkField(DocValues.java:212)
at org.apache.lucene.index.DocValues.getSorted(DocValues.java:264)
at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getSortedDocValues(FieldComparator.java:762)
at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getLeafComparator(FieldComparator.java:767)
at org.apache.lucene.index.Sorter.sort(Sorter.java:220)
at org.apache.lucene.index.MergeState.maybeSortReaders(MergeState.java:228)
at org.apache.lucene.index.MergeState.(MergeState.java:92)
at org.apache.lucene.index.SegmentMerger.(SegmentMerger.java:57)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4301)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3889)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:588)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:626)
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Warning: NLS unused message: Key in: com.kms.katalon.composer.webui.constants.composerWebuiMessages
Warning: NLS missing message: DIA_CONFIRM_INSTALL_WEBDRIVER in: com.kms.katalon.composer.webui.constants.composerWebuiMessages
Warning: NLS missing message: DIA_CONFIRM_INSTALL_WEBDRIVER_TITLE in: com.kms.katalon.composer.webui.constants.composerWebuiMessages
Expected an instance of ReferenceBinding but got: org.eclipse.jdt.internal.compiler.lookup.ArrayBinding
Expected an instance of ReferenceBinding but got: org.eclipse.jdt.internal.compiler.lookup.ArrayBinding
!SESSION 2019-03-28 14:39:19.623 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_181
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/chingher/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -data config -keyring /Users/chingher/.eclipse_keyring

!ENTRY org.eclipse.core.resources 2 10035 2019-03-28 14:39:21.918
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.core.net 1 0 2019-03-28 14:39:22.450
!MESSAGE System property http.nonProxyHosts has been set to local|.local|169.254/16|.169.254/16 by an external source. This value will be overwritten using the values from the preferences
katalon.versionNumber=6.1.0
katalon.buildNumber=1
Could not find element with Id ‘com.kms.katalon.composer.webservice.handledmenuitem.webServiceRequest’
Could not find element with Id ‘katalon.composer.objectrepository.handledmenuitem.spyweb’
Could not find element with Id ‘com.kms.katalon.composer.mobile.dynamicmenucontribution.ios’
Could not find element with Id ‘com.kms.katalon.composer.mobile.dynamicmenucontribution.ios’

!ENTRY org.eclipse.e4.ui.workbench 2 0 2019-03-28 14:39:26.878
!MESSAGE No binding context exists for org.eclipse.ui.contexts.dialog
Warning: NLS unused message: Key in: com.kms.katalon.composer.project.constants.composerProjectMessages
Warning: NLS unused message: Key in: com.kms.katalon.composer.testcase.constants.composerTestcaseMessages
Warning: NLS missing message: BTN_ADDTESTSUITE in: com.kms.katalon.composer.testcase.constants.composerTestcaseMessages
Warning: NLS unused message: PA_LBL_CREATED_DATE in: com.kms.katalon.composer.testsuite.constants.composerTestsuiteMessages
Warning: NLS unused message: PA_LBL_LAST_UPDATED in: com.kms.katalon.composer.testsuite.constants.composerTestsuiteMessages
Warning: NLS unused message: Key in: com.kms.katalon.composer.objectrepository.constant.composerObjectRepositoryMessages
Warning: NLS unused message: ACTIVATED_PROP_NAME in: com.kms.katalon.constants.messages
Warning: NLS unused message: ACTIVATE_INFO_INVALID in: com.kms.katalon.constants.messages
Warning: NLS unused message: ACTIVATION_CODE_INVALID in: com.kms.katalon.constants.messages
Warning: NLS unused message: ACTIVATION_COLLECT_FAIL_MESSAGE in: com.kms.katalon.constants.messages
Warning: NLS unused message: DIA_TITLE_FUNCTIONS_INTRODUCTION in: com.kms.katalon.constants.messages
Warning: NLS unused message: ERR_CONSOLE_MODE in: com.kms.katalon.constants.messages
Warning: NLS unused message: REQUEST_CODE_PROP_NAME in: com.kms.katalon.constants.messages
Warning: NLS missing message: MSG_FORUM_SEARCH in: com.kms.katalon.constants.messages

Hi @GeneralChingChicken,

Could you specify your System Environment: OS, CPU, RAM, use HDD or SSD?

Edit: We got the issue. Our framework (Eclipse SWT) is using NSCopyBits (it’s deprecated by Apple) that causes Text Scroll got crashes. More details: https://bugs.eclipse.org/bugs/show_bug.cgi?id=502711. We will fix in further releases.

1 Like

OS: macOS Mojave
CPU:2.2 GHX Intel Core i7
RAM:16 GB
uses SSD