Open-Systems-Pharmacology/PK-Sim

Cannot open an existing project

Opened this issue · 0 comments

Hi, I am Carrot,

I am currently working on 2 PK-Sim projects for simulation and doing several parameterized identification for its simulations. But recently all of my projects can not be opened by PK-Sim anymore.

The error is mentioned as "File is not a database" or "database disk image is malformed" although I've tried to re-download the PK-Sim 11.2 newest application with its database input.

I tried to build one model from the beginning and I also could not do parameterized identification for the simulation I made and further steps after re-downloading the app.

Please help and let me know how to fix the problem.

I would be very appreciate your help.

Thank you so much and have a nice day!

Application:
PK-Sim® 11.2.142

could not initialize a collection: [PKSim.Infrastructure.Serialization.ORM.MetaData.ProjectMetaData.BuildingBlocks#1][SQL: SELECT buildingbl0_.ProjectId as projectid9_0_2_, buildingbl0_.Id as id1_0_2_, buildingbl0_.Id as id1_0_1_, buildingbl0_.Name as name2_0_1_, buildingbl0_.Description as description3_0_1_, buildingbl0_.Icon as icon4_0_1_, buildingbl0_.Version as version5_0_1_, buildingbl0_.StructureVersion as structureversion6_0_1_, buildingbl0_.ContentId as contentid7_0_1_, buildingbl0_.PropertiesId as propertiesid8_0_1_, buildingbl0_5_.FormulationType as formulationtype2_5_1_, buildingbl0_6_.ExpressionProfileIds as expressionprofileids2_6_1_, buildingbl0_7_.ExpressionProfileIds as expressionprofileids2_7_1_, buildingbl0_9_.ProtocolMode as protocolmode2_9_1_, buildingbl0_10_.ExpressionProfileIds as expressionprofileids2_10_1_, buildingbl0_11_.SimulationMode as simulationmode2_11_1_, buildingbl0_11_.DataRepositoryId as datarepositoryid3_11_1_, buildingbl0_11_.SimulationResultsId as simulationresultsid4_11_1_, buildingbl0_11_.SimulationAnalysesId as simulationanalysesid5_11_1_, case when buildingbl0_1_.CompoundId is not null then 1 when buildingbl0_2_.EventId is not null then 2 when buildingbl0_3_.EventProtocolId is not null then 3 when buildingbl0_4_.ExpressionProfileId is not null then 4 when buildingbl0_5_.FormulationId is not null then 5 when buildingbl0_6_.PopulationId is not null then 6 when buildingbl0_7_.IndividualId is not null then 7 when buildingbl0_8_.ObserverSetId is not null then 8 when buildingbl0_9_.ProtocolId is not null then 9 when buildingbl0_10_.PopulationId is not null then 10 when buildingbl0_11_.SimulationId is not null then 11 when buildingbl0_.Id is not null then 0 end as clazz_1_, metadataco1_.Id as id1_19_0_, metadataco1_.Data as data2_19_0_ FROM BUILDING_BLOCKS buildingbl0_ left outer join COMPOUNDS buildingbl0_1_ on buildingbl0_.Id=buildingbl0_1_.CompoundId left outer join EVENTS buildingbl0_2_ on buildingbl0_.Id=buildingbl0_2_.EventId left outer join EVENT_PROTOCOLS buildingbl0_3_ on buildingbl0_.Id=buildingbl0_3_.EventProtocolId left outer join EXPRESSION_PROFILES buildingbl0_4_ on buildingbl0_.Id=buildingbl0_4_.ExpressionProfileId left outer join FORMULATIONS buildingbl0_5_ on buildingbl0_.Id=buildingbl0_5_.FormulationId left outer join IMPORT_POPULATIONS buildingbl0_6_ on buildingbl0_.Id=buildingbl0_6_.PopulationId left outer join INDIVIDUALS buildingbl0_7_ on buildingbl0_.Id=buildingbl0_7_.IndividualId left outer join OBSERVER_SETS buildingbl0_8_ on buildingbl0_.Id=buildingbl0_8_.ObserverSetId left outer join PROTOCOLS buildingbl0_9_ on buildingbl0_.Id=buildingbl0_9_.ProtocolId left outer join RANDOM_POPULATIONS buildingbl0_10_ on buildingbl0_.Id=buildingbl0_10_.PopulationId left outer join SIMULATIONS buildingbl0_11_ on buildingbl0_.Id=buildingbl0_11_.SimulationId left outer join CONTENTS metadataco1_ on buildingbl0_.PropertiesId=metadataco1_.Id WHERE buildingbl0_.ProjectId=?]

database disk image is malformed
database disk image is malformed

Stack trace:

at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(DbCommand cmd)
   at NHibernate.Loader.Loader.GetResultSet(DbCommand st, QueryParameters queryParameters, ISessionImplementor session, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type)
 --- End of inner exception stack trace ---
   at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type)
   at NHibernate.Event.Default.DefaultInitializeCollectionEventListener.OnInitializeCollection(InitializeCollectionEvent event)
   at NHibernate.Impl.SessionImpl.InitializeCollection(IPersistentCollection collection, Boolean writing)
   at NHibernate.Collection.AbstractPersistentCollection.ForceInitialization()
   at NHibernate.Engine.StatefulPersistenceContext.InitializeNonLazyCollections()
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer)
   at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   at NHibernate.Impl.CriteriaImpl.List(IList results)
   at NHibernate.Impl.CriteriaImpl.List[T]()
   at PKSim.Infrastructure.Serialization.ProjectPersistor.projectFromDatabase(ISession session)
   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)