WebAssembly: IE

@ck, I get the following exception when I try to build my WASM project on Elements 11.0.0.2699:

E: Internal error: System.NotSupportedException: Specified method is not supported.
   at RemObjects.Elements.Island.BaseABI.UncoerceValue(IEnumerable`1 aValues, ABIMode aCurrentResult, LLVMBaseValue aTargetPtr)
   at RemObjects.Elements.Island.IslandObjectModel.CallMethod(IMethodInfo aMethod, LLVMBaseValue aMethodPointer, LLVMBaseValue aSelf, BaseType aVirtualInterface, Int32 aVirtual, IParameters pars, BaseType aResultType, ExpressionCallType aCT, ImmutableArray`1 aGP, BaseType aST)
   at RemObjects.Elements.Island.IslandOutput.GenerateCallExpression(ResolvedCallExpression aExpr, Boolean anAddress)
   at RemObjects.Elements.Island.IslandOutput.GenerateExpression(Expression aExpr, Boolean aAddress)
   at RemObjects.Elements.Island.IslandOutput.GenerateStatement(Statement aSt)
   at RemObjects.Elements.Island.IslandOutput.GenerateStatement(Statement aSt)
   at RemObjects.Elements.Island.IslandOutput.GenerateStatement(ScopeStatement asT)
   at RemObjects.Elements.Island.IslandOutput.GenerateStatement(Statement aSt)
   at RemObjects.Elements.Island.IslandOutput.GenerateMethod(IMethodInfo ameth)
   at RemObjects.Oxygene.Code.CombinedParsedType.ForAllMethods(Func`2 action)
   at RemObjects.Elements.Island.IslandOutput.GenerateParsedType(IMutableParsedType aType)
   at RemObjects.Elements.Island.IslandOutput.<GenerateExecutable>b__19(IParsedType a)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at RemObjects.Elements.Island.IslandOutput.GenerateExecutable()
   at RemObjects.Oxygene.Code.Compiler.CompilerOuput.GenerateExecutable__$mapped(Compiler self)
   at RemObjects.Oxygene.Code.Compiler.Compiler.Compile()

Do you have test case for that? wasm_boehmgc.zip from your previous report build w/o errors for me, here…

No, it happens in the project I’m working on which compiled without any errors on the previous versions. Cleaning does not help.

Ok. we’ll need a test case to look at this, I’m afraid.

@mh, the error doesn’t appear on a simple project. Even if I strip down my project to the bare minimum (I did, still fails) it’s still about 100 units - way too much work to keep stripping down with all the dependencies and no clue where to start.

The project did compile on the previous preview version (11.0.0.2697) - you can check what changes were made since then. I gave you the stack trace - it’s all inside your code.

The only thing I can do is to send you my full project.

that’d be fine/perfect, yes. we’ll keep it confidential, of course. you can send it to support@ or to mh@ if you prefer.

thanx,
marc

Logged as bugs://E25583.

bugs://E25583 was closed as fixed.

Nice catch! So last week we did a few fixes for passing arrays as byref, however that should not happen with the result variable. Fixed now.

Great! Thanks guys. I’m waitng to test the next release then.

1 Like

Also tweaking the GC a bit more. I think we’re almost there.

1 Like

Hi
Can you please also test this full project in debug and release mode, because using previous Elements releases we have linker errors compiling the release version.

E: Internal error: GOUNKEX153
   (0,0): duplicate-error E0: Internal error: GOUNKEX153
   (0,0): duplicate-error E0: Internal error: GOUNKEX153
E: Internal error: System.NotSupportedException: Określona metoda nie jest obsługiwana.[CR]
   
   Project 'DK_WASM' failed to build.

which project is this?

that sounds like it’s probably the same (now fixed() bug?

The one sent by asiwecki. The second error is the same.

Ah. that one compiles without errors for me, in latest.

1 Like