I consistently get this exception the second time I build my map after opening my project in vscode. As a workaround I have to restart vscode each time I want to build and run my map.
Dec 02, 2020 7:01:48 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 1004
Exception in thread "D3D Screen Updater" java.lang.OutOfMemoryError: Java heap space
at sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.OutOfMemoryError: Java heap space
at java.util.AbstractList.iterator(Unknown Source)
at de.peeeq.wurstscript.jassIm.AsgList.addAll(AsgList.java:39)
at de.peeeq.wurstscript.jassIm.ImStmts.addAll(ImStmts.java:5)
at de.peeeq.wurstscript.jassIm.JassIm.ImStmts(JassIm.java:216)
at de.peeeq.wurstscript.translation.imtranslation.EliminateClasses.createDispatchFunc(EliminateClasses.java:305)
at de.peeeq.wurstscript.translation.imtranslation.EliminateClasses.eliminateClasses(EliminateClasses.java:66)
at de.peeeq.wurstio.WurstCompilerJassImpl.transformProgToJass(WurstCompilerJassImpl.java:417)
at de.peeeq.wurstio.languageserver.requests.MapRequest.compileMap(MapRequest.java:191)
at de.peeeq.wurstio.languageserver.requests.MapRequest.compileScript(MapRequest.java:348)
at de.peeeq.wurstio.languageserver.requests.MapRequest.compileScript(MapRequest.java:363)
at de.peeeq.wurstio.languageserver.requests.RunMap.execute(RunMap.java:86)
at de.peeeq.wurstio.languageserver.requests.UserRequest.run(UserRequest.java:31)
at de.peeeq.wurstio.languageserver.LanguageWorker.lambda$getNextWorkItem$1(LanguageWorker.java:160)
at de.peeeq.wurstio.languageserver.LanguageWorker$$Lambda$116/576098.run(Unknown Source)
at de.peeeq.wurstio.languageserver.LanguageWorker$Workitem.run(LanguageWorker.java:28)
at de.peeeq.wurstio.languageserver.LanguageWorker.run(LanguageWorker.java:135)
at java.lang.Thread.run(Unknown Source)
Error in request 'de.peeeq.wurstio.languageserver.requests.RunMap@108fa28e' (see log for details): Java heap space
I consistently get this exception the second time I build my map after opening my project in vscode. As a workaround I have to restart vscode each time I want to build and run my map.
Repro steps:
Phase 2: translate classes
and then the out of memory exception is thrownlanguageServer.log compiler.log