View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000708 | Heureka | General | public | 2024-09-10 09:00 | 2025-01-27 10:18 |
Reporter | admin | Assigned To | osskyn | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Product Version | 2.22.0 | ||||
Summary | 0000708: Pricelist calculation exception | ||||
Description | Email from: Bugtracker Heureka <bugtracker.heureka@slu.se> Originally sent by: Ambjörn <ambjorn.forslund@gmail.com> Har skapat en ny prislista. Felet uppstår när jag försöker beräkna den (högerklickar på prislistan i "Projektets prislistor"). Har ni något förslag på vad som kan vara fel? --- Exception --- System.AggregateException: One or more errors occurred. --- Stack Trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body) at Slu.Heureka.DomainLayer.ValueModel.CalculatedPricelist..ctor(Pricelist pricelist, Int32 minDiameter, Int32 maxDiameter, EdgrenNylinderRegion region, SpeciesGroupCode species, CancelEventHandler cancelEventHandler, Double timberPriceFactor, Double pulpWoodPriceFactor) at Slu.Heureka.DomainLayer.ValueModel.Pricelist.calculatePrices(Double timberPriceTrendFactor, Double pulpWoodPriceTrendFactor, Boolean priceTrendCalculation) at Slu.Heureka.DomainLayer.ValueModel.Pricelist.CalculatePrices() at Slu.Heureka.BaseLayer.HeurekaForms.ProgressForm.backgroundWorker1_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) | ||||
Additional Information | User reported that he the wrong unit for diameters in the pricelist (or something along those lines). When he corrected the error the pricelists were calculated as expected. | ||||
Tags | No tags attached. | ||||
Product | General | ||||
|
An additional multi-threading related error when attempting to calculate a price list: "Cross-thread operation not valid: Control '_pricelistComboBox' accessed from a thread other than the thread it was created on." at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.ComboBox.get_SelectedIndex() at Slu.Heureka.DomainLayer.StandVis.TreatmentHandling.UI.LogTallyControl.loadPricelistComboBox() in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer.StandVis\TreatmentHandling\UI\LogTallyControl.cs:line 107 at Slu.Heureka.DomainLayer.StandVis.TreatmentHandling.UI.LogTallyControl.ProjectItemChanged(Object sender, ProjectItemEventArgs e) in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer.StandVis\TreatmentHandling\UI\LogTallyControl.cs:line 66 at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Slu.Heureka.DomainLayer.ProjectHandling.Project.item_ItemChanged(Object sender, EventArgs e) in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer\ProjectHandling\Project.cs:line 904 at Slu.Heureka.DomainLayer.ValueModel.Pricelist.setChanged() in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer\ValueModel\Pricelist.cs:line 2005 at Slu.Heureka.DomainLayer.ValueModel.Pricelist.Pricelist_PropertyChanged(Object sender, PropertyChangedEventArgs e) in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer\ValueModel\Pricelist.cs:line 1064 at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e) at Slu.Heureka.BaseLayer.CommandHandling.UndoablePropertyChangedBase.NotifyPropertyChanged(Object sender, PropertyChangedEventArgs eventArgs) in C:\svn\heureka\Implementation\Slu.Heureka.BaseLayer\CommandHandling\UndoablePropertyChangedBase.cs:line 227 at Slu.Heureka.DomainLayer.ValueModel.Pricelist.CalculatePrices() in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer\ValueModel\Pricelist.cs:line 1176 at Slu.Heureka.DomainLayer.ValueModel.Pricelist.DoWork() in C:\svn\heureka\Implementation\Slu.Heureka.DomainLayer\ValueModel\Pricelist.cs:line 1522 at Slu.Heureka.BaseLayer.HeurekaForms.ProgressForm.backgroundWorker1_DoWork(Object sender, DoWorkEventArgs e) in C:\svn\heureka\Implementation\Slu.Heureka.BaseLayer\HeurekaForms\ProgressForm.cs:line 362 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-09-10 09:00 | admin | New Issue | |
2024-10-15 07:57 | jonare | Product Version | => 2.22.0 |
2024-10-15 07:57 | jonare | Summary | User Submitted Report => Pricelist calculation exception |
2024-10-15 07:57 | jonare | Description Updated | |
2024-10-15 07:57 | jonare | Additional Information Updated | |
2024-11-19 15:26 | alvlin | Assigned To | => alvlin |
2024-11-19 15:26 | alvlin | Status | new => assigned |
2024-12-12 13:36 | alvlin | Changeset attached | => heureka pricelistError708 r22565 |
2025-01-13 10:46 | osskyn | Note Added: 0000634 | |
2025-01-27 10:18 | osskyn | Assigned To | alvlin => osskyn |