Open-Systems-Pharmacology / PK-Sim

PK-Sim® is a comprehensive software tool for whole-body physiologically based pharmacokinetic modeling
Other
102 stars 49 forks source link

Error when re-opening PK Sim file #2351

Open watt0005 opened 1 year ago

watt0005 commented 1 year ago

I created a PBPK model in PK Sim v11, saved it, and exported to MoBi for additional modification. Whenever I try to re-open the original PK Sim file, I get the error below. Please advise.

Thanks, Kevin

Application: PK-Sim® 11.0.150

Array cannot be null. Parameter name: bytes

Stack trace:

at System.Text.Encoding.GetString(Byte[] bytes)
   at OSPSuite.Serializer.Xml.XmlHelper.ElementFromBytes(Byte[] serializationByte)
   at PKSim.Infrastructure.Serialization.Xml.XmlSerializationManager.ElementFrom(Byte[] serializationBytes)
   at PKSim.Infrastructure.Serialization.Xml.XmlSerializationManager.getConvertedElementFrom(Byte[] serializationBytes)
   at PKSim.Infrastructure.Serialization.Xml.XmlSerializationManager.Deserialize[TObject](TObject objectToDeserialize, Byte[] serializationBytes, SerializationContext serializationContext)
   at PKSim.Core.Services.CompressedSerializationManager.Deserialize[TObject](TObject objectToDeserialize, Byte[] serializationBytes, SerializationContext serializationContext)
   at PKSim.Infrastructure.Serialization.ORM.Mappers.ProjectMetaDataToProjectMapper.deserialize(BuildingBlockMetaData buildingBlockMetaData)
   at PKSim.Infrastructure.Serialization.ORM.Mappers.ProjectMetaDataToProjectMapper.mapFrom(BuildingBlockMetaData buildingBlockMetaData)
   at PKSim.Infrastructure.Serialization.ORM.Mappers.ProjectMetaDataToProjectMapper.<MapFrom>b__6_2(BuildingBlockMetaData x)
   at OSPSuite.Utility.Extensions.EnumerableExtensions.Each[T](IEnumerable`1 list, Action`1 action)
   at PKSim.Infrastructure.Serialization.ORM.Mappers.ProjectMetaDataToProjectMapper.MapFrom(ProjectMetaData projectMetaData)
   at PKSim.Infrastructure.Serialization.ProjectPersistor.projectFrom(ProjectMetaData projectMetaData)
   at PKSim.Infrastructure.Serialization.ProjectPersistor.Load(ISession session)
   at PKSim.Infrastructure.Serialization.WorkspacePersistor.LoadSession(ICoreWorkspace workspace, String fileFullPath)
   at PKSim.Infrastructure.Workspace.<>c__DisplayClass17_0.<OpenProject>b__0()
   at PKSim.Infrastructure.Workspace.LoadProject(Action projectLoadAction)
   at PKSim.Infrastructure.Workspace.OpenProject(String fileFullPath)
   at PKSim.Presentation.Services.ProjectTask.<>c__DisplayClass32_0.<openProjectFromFile>g__openProject|0()
   at PKSim.Presentation.Services.ProjectTask.openProjectFromFile(String projectFile, Boolean shouldStartWorker)
   at PKSim.Presentation.Services.ProjectTask.Run(StartOptions startOptions)
   at PKSim.Presentation.Presenters.Main.PKSimMainViewPresenter.Run()
   at PKSim.UI.Views.Shell.<OnLoad>b__4_0()
   at OSPSuite.Utility.Extensions.ExceptionExtensions.DoWithinExceptionHandler(Object callerObject, Action actionToExecute)
watt0005 commented 1 year ago

Wanted to see if there is any follow up on this.

rwmcintosh commented 1 year ago

Can you attach that file here?

watt0005 commented 1 year ago

Robert –I think that the problem was with the software. Regardless of the model, whenever I saved a model file, I would get that error when I tried to re-open the model. I removed OSP v11 and re-installed it. The new version would not open the prior v11 models but I was able to rebuild the PK Sim model and successfully save and re-open. So from my end, the issue seems to be resolved. Let me know if you still want a model file for diagnostic purposes.

Kevin

Kevin Watt, MD, PhD Robert M. Ward Endowed Chair in Clinical Pharmacology Chief, Division of Clinical Pharmacology Division of Pediatric Critical Care Medicine Department of Pediatrics Spencer Fox Eccles School of Medicine at the University of Utah Phone: 801-587-7404 @.**@.>

From: Robert McIntosh @.> Sent: Wednesday, October 12, 2022 9:03 AM To: Open-Systems-Pharmacology/PK-Sim @.> Cc: Kevin Watt @.>; Author @.> Subject: Re: [Open-Systems-Pharmacology/PK-Sim] Error when re-opening PK Sim file (Issue #2351)

Can you attach that file here?

— Reply to this email directly, view it on GitHubhttps://github.com/Open-Systems-Pharmacology/PK-Sim/issues/2351#issuecomment-1276328644, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHO6Y7IDI2WLYIZE4K4SUD3WC3HI7ANCNFSM6AAAAAAQWXMGT4. You are receiving this because you authored the thread.Message ID: @.***>