Fatal Error
- Dominant language
- C#
- Stars
- 76
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
twhitvine[CodePlex]
Version: 1.5.12.9
Description: In Tools panel, double-clicked Calculate Areas tool.
Error: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---gt System.ComponentModel.Composition.CompositionException:
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Could not load file or assembly 'gdal_csharp, Version=1.0.4398.13657, Culture=neutral, PublicKeyToken=db5a52b08dc5b321' or one of its dependencies. The system cannot find the file specified.
Resulting in: The type initializer for 'DotSpatial.Data.Rasters.GdalExtension.GdalHelper' threw an exception.
Resulting in: An exception occurred while trying to create an instance of type 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.
Resulting in: Cannot activate part 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.
Element: DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DirectoryCatalog (Path=quotC:\Users\whiteatl\AppData\Roaming\HydroDesktop_1_5_12.exe\Extensions\Packages\DotSpatial.Data.Rasters.GdalExtension.1.0.1185\lib\net40-Clientquot)
Resulting in: Cannot get export 'DotSpatial.Data.IDataProvider (ContractName=quotDotSpatial.Data.IDataProviderquot)' from part 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.
Element: DotSpatial.Data.IDataProvider (ContractName=quotDotSpatial.Data.IDataProviderquot) --gt DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DirectoryCatalog (Path=quotC:\Users\whiteatl\AppData\Roaming\HydroDesktop_1_5_12.exe\Extensions\Packages\DotSpatial.Data.Rasters.GdalExtension.1.0.1185\lib\net40-Clientquot)
Resulting in: Cannot set import 'DotSpatial.Data.DataManager.DataProviders (ContractName=quotDotSpatial.Data.IDataProviderquot)' on part 'DotSpatial.Data.DataManager'.
Element: DotSpatial.Data.DataManager.DataProviders (ContractName=quotDotSpatial.Data.IDataProviderquot) --gt DotSpatial.Data.DataManager
at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ImportEngine.ltgtc__DisplayClass14.ltTryRecomposeImportgtb__12()
at System.ComponentModel.Composition.Hosting.AtomicComposition.FinalComplete()
at System.ComponentModel.Composition.Hosting.AtomicComposition.Complete()
at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.Add(ComposablePartCatalog item)
at DotSpatial.Controls.AppManager.TryLoadingCatalog(AggregateCatalog catalog, ComposablePartCatalog cat)
at DotSpatial.Controls.AppManager.LocateExtensions(AggregateCatalog catalog, String absolutePathToExtensions)
at DotSpatial.Plugins.ExtensionManager.ExtensionManagerForm.ltgtc__DisplayClass5.ltInstallButton_Clickgtb__1()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskExceptionHolder.Finalize()
---gt (Inner Exception #0) System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Could not load file or assembly 'gdal_csharp, Version=1.0.4398.13657, Culture=neutral, PublicKeyToken=db5a52b08dc5b321' or one of its dependencies. The system cannot find the file specified.
Resulting in: The type initializer for 'DotSpatial.Data.Rasters.GdalExtension.GdalHelper' threw an exception.
Resulting in: An exception occurred while trying to create an instance of type 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.
Resulting in: Cannot activate part 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.
Element: DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DirectoryCatalog (Path=quotC:\Users\whiteatl\AppData\Roaming\HydroDesktop_1_5_12.exe\Extensions\Packages\DotSpatial.Data.Rasters.GdalExtension.1.0.1185\lib\net40-Clientquot)
Resulting in: Cannot get export 'DotSpatial.Data.IDataProvider (ContractName=quotDotSpatial.Data.IDataProviderquot)' from part 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.
Element: DotSpatial.Data.IDataProvider (ContractName=quotDotSpatial.Data.IDataProviderquot) --gt DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DirectoryCatalog (Path=quotC:\Users\whiteatl\AppData\Roaming\HydroDesktop_1_5_12.exe\Extensions\Packages\DotSpatial.Data.Rasters.GdalExtension.1.0.1185\lib\net40-Clientquot)
Resulting in: Cannot set import 'DotSpatial.Data.DataManager.DataProviders (ContractName=quotDotSpatial.Data.IDataProviderquot)' on part 'DotSpatial.Data.DataManager'.
Element: DotSpatial.Data.DataManager.DataProviders (ContractName=quotDotSpatial.Data.IDataProviderquot) --gt DotSpatial.Data.DataManager
at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ImportEngine.ltgtc__DisplayClass14.ltTryRecomposeImportgtb__12()
at System.ComponentModel.Composition.Hosting.AtomicComposition.FinalComplete()
at System.ComponentModel.Composition.Hosting.AtomicComposition.Complete()
at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.Add(ComposablePartCatalog item)
at DotSpatial.Controls.AppManager.TryLoadingCatalog(AggregateCatalog catalog, ComposablePartCatalog cat)
at DotSpatial.Controls.AppManager.LocateExtensions(AggregateCatalog catalog, String absolutePathToExtensions)
at DotSpatial.Plugins.ExtensionManager.ExtensionManagerForm.ltgtc__DisplayClass5.ltInstallButton_Clickgtb__1()
at System.Threading.Tasks.Task.Execute()lt---
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Calculate Areas double-click from the issue and trace the reported calls through DotSpatial.Controls.AppManager.TryLoadingCatalog, LocateExtensions, and the extension manager task. Inspect the GdalExtension provider path and the missing gdal_csharp assembly in the reported package location. Done means the operation no longer produces this fatal composition error when the dependency cannot be loaded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100