#2348 Internal compiler error (compilerJava::Dasm.readConstantPool)

tcolar Thu 25 Sep 2014

Hi I was trying to replace the extremely flaky SWT webbrowser with javafx.Webview (part of java since java 7)

So I added:

using [java] javafx.scene.web::WebView 

But that made the compiler barf:

compile [camembert]
  Compile [camembert]
    FindSourceFiles [54 files]
ERR: Internal compiler error
sys::IOErr: unknown tag 18
  compilerJava::Dasm.readConstantPool (Dasm.fan:83)
  compilerJava::Dasm.read (Dasm.fan:29)
  compilerJava::JavaDasmLoader.load (JavaDasmLoader.fan:40)
  compilerJava::JavaType.load (JavaType.fan:169)
  compilerJava::JavaType.slots (JavaType.fan:79)
  compilerJava::JavaType.slot (JavaType.fan:83)
  compiler::CallResolver.findOn (CallResolver.fan:218)
  compiler::CallResolver.find (CallResolver.fan:163)
  compiler::CallResolver.resolve (CallResolver.fan:62)
  compiler::ResolveExpr.resolveCall (ResolveExpr.fan:490)
  compiler::ResolveExpr.resolveExpr (ResolveExpr.fan:164)
  compiler::ResolveExpr.visitExpr (ResolveExpr.fan:123)
  compiler::Expr.walk (Expr.fan:263)
  compiler::BinaryExpr.walkChildren (Expr.fan:679)
  compiler::Expr.walk (Expr.fan:262)
  compiler::Stmt.walkExpr (Stmt.fan:61)
  compiler::ExprStmt.walkChildren (Stmt.fan:117)
  compiler::Stmt.walk (Stmt.fan:48)
  compiler::Block.walk (Block.fan:89)
  fan.sys.List.each (List.java:555)
  45 More...
BUILD FAILED [2797ms]!

I'm using java version "1.8.0_20" if that matters.

Any ideas ?

SlimerDude Thu 25 Sep 2014

Sorry, I can't help with the WebView problem but...

Since implementing the fix I mentioned way back in fwt::WebBrowser and Flux I've not had any problems with WebBrowser. With a bit of love I don't think it's as bad as people make out.

...well, by problems I mean it's never crashed like it used to - it's still not very good at displaying sites with a lot of Javascript.

...and I can only verify it's stableness on 64 bit Win7.

brian Thu 25 Sep 2014

Tag 18 is the new INVOKEDYNAMIC constant pool entry. Based on your line number I would say you are running an older version of Fantom. In code of tip that constant is handled correctly.

Login or Signup to reply.