Windows DLL build error on 2459

Hi,

installed 2459, build of windows Elements library getting error
Error (E0) Internal error: System.NullReferenceException
w D.VisitIfStatement(IfStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w D.VisitStatementExpression(StatementExpression a)
w D.VisitExpression(Expression a)
w D.d(Expression a)
w D.VisitWhileStatement(WhileStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w D.VisitTryStatement(TryStatement a)
w D.VisitStatement(Statement a)
w D.VisitBeginStatement(BeginStatement a)
w D.VisitStatement(Statement a)
w RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
w D.VisitScopeStatement(ScopeStatement a)
w D.VisitStatement(Statement a)
w E.a(IMutableMethodImplementation a)
w RemObjects.Oxygene.Code.CombinedParsedType.ForAllMethods(Func`2 action)
w E.b(IMutableParsedType a)
w E.b(IMutableParsedType a)
w E.g()
w E.a(Stream a)
w E.GenerateExecutable()
w RemObjects.Oxygene.Code.Compiler.Compiler.GenerateExecutable()
w RemObjects.Oxygene.Code.Compiler.Compiler.Compile() Inpx_WspolneWindows C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets 70

I’ll try to install 2457. Using personal 2456 was ok

2457 builds ok

Can we get a testcase for this?

Pretty much the entire product we ship (including the compiler, yes) is built with the exact version of the compiler that ships in the product (chicken, meet egg ;), so its pretty much always safe to assume that any bug you see is not going to be as simple as “nothing compiles, so you’ll easily see this yourself”.

thanx!

Test case - can’t give you whole code. DLL without any code - everything in shared - I’ll try to generate sample, but don’t know if it’s possible. We can connect via teamviewer or sth but could it help?

I’ll have to let Carlo get back to you on that, he’s the one who’d need to debug this and thus to decide if he can remote-debug it.

Thanks, logged as bugs://83612

Maybe it will help - Generating Output,Echoes

[10:14:52] : [Step 2/10] :PHASE,FINISHED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Generating Helper Types,Echoes,TRUE
[10:14:52] : [Step 2/10] -> Phase Inlining Code started.
[10:14:52] : [Step 2/10] :PHASE,STARTED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Inlining Code,Echoes
[10:14:52] : [Step 2/10] <- Phase Inlining Code finished, took 0,1763s.
[10:14:52] : [Step 2/10] :PHASE,FINISHED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Inlining Code,Echoes,TRUE
[10:14:52] : [Step 2/10] -> Phase Pre-Simplifying Code started.
[10:14:52] : [Step 2/10] :PHASE,STARTED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Pre%2DSimplifying Code,Echoes
[10:14:52] : [Step 2/10] <- Phase Pre-Simplifying Code finished, took 0,0000s.
[10:14:52] : [Step 2/10] :PHASE,FINISHED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Pre%2DSimplifying Code,Echoes,TRUE
[10:14:52] : [Step 2/10] -> Phase Simplifying Code started.
[10:14:52] : [Step 2/10] :PHASE,STARTED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Simplifying Code,Echoes
[10:14:53] : [Step 2/10] <- Phase Simplifying Code finished, took 1,0720s.
[10:14:53] : [Step 2/10] :PHASE,FINISHED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Simplifying Code,Echoes,TRUE
[10:14:53] : [Step 2/10] -> Phase Flow Analysis started.
[10:14:53] : [Step 2/10] :PHASE,STARTED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Flow Analysis,Echoes
[10:14:53] : [Step 2/10] <- Phase Flow Analysis finished, took 0,1454s.
[10:14:53] : [Step 2/10] :PHASE,FINISHED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Flow Analysis,Echoes,TRUE
[10:14:53] : [Step 2/10] -> Phase Generating Output started.
[10:14:53] : [Step 2/10] :PHASE,STARTED,d:\Projekty\MPSL\Oxygene\Inpx_WspolneWindows\Inpx_WspolneWindows.elements,Generating Output,Echoes
[10:14:54] : [Step 2/10]

Can you try opening ebuild.exe as a project in vs, disableing Just my Code, setting a break on NullReferenceException and running it with your project as parameter? that should trigger the error above, then, if you look at the locals in the different methods, you can find “where” you are.

w E.a(IMutableMethodImplementation a) << should have the method name. The others the current statement.

Of course I will try

Thanks. It’s a little tricky to conclude just from a callstack, but we should be able to narrow things down this way.

How to run EBuild with my project as parameter?

--rebuild "path\to\yourprojects.elemntsorsln"

from commandline? sorry it’s not my every day work :smiley:

:slight_smile: We could do teamviewer?

bugs://83612 got closed with status fixed.

Fixed for tomorrow’s build.

1 Like

Ok - I’ll install it tomorrow :slight_smile: For now back to 2457.

Thanks