TheGeneGenieProject / GeneGenie.Gedcom

A .Net library for loading, saving, working with and analysing family trees stored in the GEDCOM format.
GNU Affero General Public License v3.0
52 stars 23 forks source link

Cannot open file #116

Open HolyOne opened 1 year ago

HolyOne commented 1 year ago

When I export this tree to gedcom 7 format, the library cant open it It has no problem opening if I export in gedcom5 format

sample.zip

Here is the error

System.ArgumentOutOfRangeException HResult=0x80131502 Message=Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') Source=System.Private.CoreLib StackTrace: at System.ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException() at System.Collections.Generic.List1.get_Item(Int32 index) at GeneGenie.Gedcom.Parser.GedcomRecordReader.ReadSourceRecord() at GeneGenie.Gedcom.Parser.GedcomRecordReader.Parser_TagFound(Object sender, EventArgs e) at GeneGenie.Gedcom.Parser.GedcomParser.GedcomParse(String data) at GeneGenie.Gedcom.Parser.GedcomRecordReader.ReadGedcom(String gedcomFile) at GeneGenie.Gedcom.Parser.GedcomRecordReader.CreateReader(String gedcomFilePath) at WebTree.Code.Service.FamilyTreeReader.Load() in G:\Projects\WebTree\WebTree\Code\Service\FamilyTreeReader.cs:line 33 at WebTree.Code.Service.FamilyTreeReader..ctor(IWebHostEnvironment _env, IOptions1 _settings) in G:\Projects\WebTree\WebTree\Code\Service\FamilyTreeReader.cs:line 26 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DefaultPageModelFactoryProvider.<>c__DisplayClass3_0.b0(PageContext pageContext) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.CreateInstance() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.d21.MoveNext()

`