Open Yuri05 opened 3 years ago
@Yuri05 This is probably due to colors being used. (system.drawing is used to get colors) /This should be compatible with .NET standard so this is definitely a bug in Mono. A way around this is to do sthg else to get a color back. We can investigate
@Yuri05 This is it https://github.com/Open-Systems-Pharmacology/OSPSuite.Core/blob/develop/src/OSPSuite.Core/Chart/ChartSettings.cs#L1
The only way I can think about fixing this is to move to string. This will be a bit of work and I am not sure if this is worth it We would then have to create an extension method whenever we use color to convert that string to color etc..
Let me know your thoughts
If a pkml simulation file contains Chart Templates:
loadSimulation
fails under Linux with the errorExample: S1_CT2.zip
Removing chart templates from a simulation makes it loadabale again. Happens under CentOS7, Ubuntu18.04 and Ubuntu20.04 (as reported by user here)
In order to be able to load the simulation either all chart templates must be deleted first or e.g. a workaround provided by user could be applied.
While in general it seems to be a bug in MONO which cannot be fixed until we upgrade rClr (and enable either working with latest MONO versions or .NET Core) I still wonder why reading Chart Templates require additional dependencies.
With MONO Debugging ON (
export MONO_LOG_LEVEL=info
) I can see that Deserializing Chart Templates RequiresSystem.Drawing
which finally seems to produce this error on Linux:Thus I wonder why System.Drawing is required during the loading of a simulation and how we can avoid this. @msevestre Any thoughts on this?