Project: aptanastudio
Issue APSTUD-4959: "Building Workspace" very slow, many DiskIndex.readString() errors in log file
Each time a build workspace operation is launched Aptana chokes on certain files which appear to be javascript files. Killing Aptana, deleting the suspected files and restarting Aptana seems to solve the problem. I t re-appears as soon as the files are put back into the project. There is a large selection of the following errors in the log file: {code} !ENTRY com.aptana.index.core 4 0 2012-06-27 12:04:54.404 !MESSAGE (Build 3.3.0.201206252026) [ERROR] null !STACK 0 java.io.UTFDataFormatException com.aptana.internal.index.core.DiskIndex.readString(DiskIndex.java:1513) com.aptana.internal.index.core.DiskIndex.readCategoryTable(DiskIndex.java:1121) com.aptana.internal.index.core.DiskIndex.mergeCategory(DiskIndex.java:797) com.aptana.internal.index.core.DiskIndex.mergeCategories(DiskIndex.java:770) com.aptana.internal.index.core.DiskIndex.mergeWith(DiskIndex.java:931) com.aptana.index.core.Index.save(Index.java:698) com.aptana.index.core.Index.query(Index.java:535) com.aptana.editor.js.contentassist.index.JSIndexReader.getProperties(JSIndexReader.java:414) com.aptana.editor.js.contentassist.JSIndexQueryHelper.getProperties(JSIndexQueryHelper.java:301) com.aptana.editor.js.contentassist.JSIndexQueryHelper.getMembers(JSIndexQueryHelper.java:183) com.aptana.editor.js.contentassist.JSIndexQueryHelper.getGlobals(JSIndexQueryHelper.java:124) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:659) com.aptana.editor.js.parsing.ast.JSIdentifierNode.accept(JSIdentifierNode.java:33) com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:260) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:241) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:361) com.aptana.editor.js.parsing.ast.JSBinaryArithmeticOperatorNode.accept(JSBinaryArithmeticOperatorNode.java:94) com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processValues(JSSymbolTypeInferrer.java:556) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:339) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processProperties(JSSymbolTypeInferrer.java:461) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:771) com.aptana.editor.js.parsing.ast.JSObjectNode.accept(JSObjectNode.java:39) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.addTypes(JSNodeTypeInferrer.java:160) com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:305) com.aptana.editor.js.parsing.ast.JSAssignmentNode.accept(JSAssignmentNode.java:84) com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processValues(JSSymbolTypeInferrer.java:556) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:339) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:376) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer$1.map(JSSymbolTypeInferrer.java:282) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer$1.map(JSSymbolTypeInferrer.java:1) com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:340) com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:374) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getScopeProperties(JSSymbolTypeInferrer.java:278) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:216) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:114) com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:525) com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:436) com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:413) com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:307) com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:153) org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 13