Water (10.0.0.2249) crashes when launched on Windows 10

I have installed Elements with Water 10.0.0.2249 (stable channel) on Windows 10 x64 Pro 1709 (build 16299.192).
Attempting to launch it fails with the following 2 message boxes:

---------------------------
Error
---------------------------
Oops, this should not have happened: System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.IOException: Cannot locate resource 'elements-white.ico'.
   at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
   at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
   at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
   at System.IO.Packaging.PackWebResponse.GetResponseStream()
   at System.IO.Packaging.PackWebResponse.get_ContentType()
   at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
   at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at RemObjects.Water.CoreApp.Dialogs.MainView.InitializeComponent()
   at RemObjects.Water.CoreApp.Dialogs.MainView..ctor()
   at RemObjects.Water.App.WaterWindowManager.CreateMainView()
   at WaterApp.App.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK   
---------------------------

Before I could click OK I got the second one (which was modal in relation to the first):

---------------------------
Error
---------------------------
Oops, this should not have happened: System.NullReferenceException: Object reference not set to an instance of an object.
   at RemObjects.Water.CoreApp.Dialogs.MainView.adjustUIForNewVersion(Boolean hasNewVersion, Int32 availableBuildNo, String text, Url downloadUrl)
   at RemObjects.Fire.App.FireAppDelegate.adjustUIForNewVersion()
   at RemObjects.Fire.App.FireAppDelegate.<>c__DisplayClass2.<doUpdateCheck>b__1()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK   
---------------------------

image

This is fixed in 2251 and later.

Side note: Why is everyone starting to use 2249, which is two weeks old, this week?

Just noticed it last week and didn’t get a chance before. :slight_smile:

I also have a problem compiling the Mandelbrot example in Silver/Island (when using VS2015). I get the following output:

------ Build started: Project: Mandelbrot, Configuration: Debug ------
 error E0: Internal error: System.NullReferenceException: Object reference not set to an instance of an object.
   at RemObjects.Elements.Island.IslandOutput.CastTo(LLVMBaseValue aInput, BaseType SourceType, BaseType DestType)
   at RemObjects.Elements.Island.IslandOutput.CreateGlobalValue(Expression aVal)
   at RemObjects.Elements.Island.IslandOutput.<>c__DisplayClass5.<PrepareTypeMembers>b__1(IMemberInfo a)
   at RemObjects.Oxygene.Code.CombinedParsedType.ForAllMembers(Func`2 action)
   at RemObjects.Elements.Island.IslandOutput.PrepareTypeMembers(IMutableParsedType aType)
   at RemObjects.Elements.Island.IslandOutput.PrepareTypes()
   at RemObjects.Elements.Island.IslandOutput.GenerateExecutable()
   at RemObjects.Oxygene.Code.Compiler.Compiler.GenerateExecutable()
   at RemObjects.Oxygene.Code.Compiler.Compiler.Compile()
Done building project "Mandelbrot.elements" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Seems like the line with the array is problematic.

Is there a chance that was fixed too?

that one’s not a know issue, AFAIK. I’ll log it for the compiler team.

Thanks, logged as bugs://79638

Thanks.

bugs://79638 got closed with status fixed.

Nice!