CUAHSI / CUAHSI/HydroDesktop

Fatal Error

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
CodePlex
Dominant language
C#
Stars
76
Forks
21
PR merge metrics
No merged PRs in 30d

Description

jacobfeistner[CodePlex]
Version: 1.6.13.2
Description: I am trying to load a saved project. I have tried several times and continue to get an error.
Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---gt System.Data.EvaluateException: Filter expression '[NAME] ' does not evaluate to a Boolean term.

at System.Data.Select.AcceptRecord(Int32 record)
at System.Data.Select.GetLinearFilteredRows(Range range)
at System.Data.Select.SelectRows()
at DotSpatial.Data.FeatureSet.SelectIndexByAttribute(String filterExpression)
at DotSpatial.Symbology.LabelLayer.CreateIndexedLabels()
at DotSpatial.Symbology.LabelLayer.CreateLabels()
at DotSpatial.Symbology.FeatureLayer.set_LabelLayer(ILabelLayer value)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStructamp sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)

at DotSpatial.Serialization.XmlDeserializer.FillObject(XElement element, Object parent, Boolean includeConstructorElements)

at DotSpatial.Serialization.XmlDeserializer.ReadObject(XElement element, Object parent)

at DotSpatial.Serialization.XmlDeserializer.PopulateList(XElement element, IList list)

at DotSpatial.Serialization.XmlDeserializer.FillObject(XElement element, Object parent, Boolean includeConstructorElements)

at DotSpatial.Serialization.XmlDeserializer.ReadObject(XElement element, Object parent)

at DotSpatial.Serialization.XmlDeserializer.FillObject(XElement element, Object parent, Boolean includeConstructorElements)

at DotSpatial.Serialization.XmlDeserializer.ReadObject(XElement element, Object parent)

at DotSpatial.Serialization.XmlDeserializer.FillObject(XElement element, Object parent, Boolean includeConstructorElements)

at DotSpatial.Serialization.XmlDeserializer.ReadObject(XElement element, Object parent)

at DotSpatial.Serialization.XmlDeserializer.FillObject(XElement element, Object parent, Boolean includeConstructorElements)

at DotSpatial.Serialization.XmlDeserializer.ReadObject(XElement element, Object parent)

at DotSpatial.Serialization.XmlDeserializer.PopulateArray(XElement element, Array array)

at DotSpatial.Serialization.XmlDeserializer.FillObject(XElement element, Object parent, Boolean includeConstructorElements)

at DotSpatial.Serialization.XmlDeserializer.Deserialize[T](T existingObject, String xml)

at DotSpatial.Controls.SerializationManager.OpenProjectFile(String fileName)
at DotSpatial.Controls.SerializationManager.OpenProject(String fileName)
at HydroDesktop.MainApplication.Program.Main(String[] args)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure while opening the saved project through SerializationManager.OpenProjectFile and inspect the label configuration passed to LabelLayer.CreateIndexedLabels. Trace the [NAME] filter through FeatureSet.SelectIndexByAttribute and determine what saved-project input causes the EvaluateException. Done means the reported project opens without this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.