No symbols and model

Discussion about the use of Simantics System Dynamics
Post Reply
John_R
Posts: 3
Joined: December 20th, 2016, 12:19 pm

No symbols and model

Post by John_R » December 20th, 2016, 3:56 pm

Hi,

After opening an example model I don't see a model in the modelbrowser anymore, nor any symbols under the tab "symbols".

OS: Windows 7 Professional
Java: version 8 update 111

John_R
Tuomas Miettinen
Site Admin
Posts: 31
Joined: March 11th, 2013, 3:14 pm

Re: No symbols and model

Post by Tuomas Miettinen » December 21st, 2016, 12:25 pm

Hi,

Sounds quite strange, maybe there was a failure in the connection between the user interface and the underlying database...? If so, starting from an empty workspace should fix the issue. I'm assuming you're using 1.9.0.

Tuomas
jildau
Posts: 1
Joined: December 30th, 2016, 6:38 pm

Re: No symbols and model

Post by jildau » December 30th, 2016, 6:40 pm

Same problem here. Starting from an empty workspace does not help. Indeed using 1.9.0.
John_R
Posts: 3
Joined: December 20th, 2016, 12:19 pm

Re: No symbols and model

Post by John_R » January 2nd, 2017, 3:01 pm

I'm using version 1.9.1.

Tried today a different workspace location, but with the same results.
In the errorlog I've found some entrys that may be helpfull:

!ENTRY org.simantics.workbench 4 0 2017-01-02 12:27:56.063
!MESSAGE Unexpected database problems during search result processing, see exception.
!STACK 0
org.simantics.db.exception.DatabaseException: org.simantics.db.layer0.genericrelation.IndexException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.simantics.db.impl.query.CacheEntryBase.checkAndThrow(CacheEntryBase.java:108)
at org.simantics.db.impl.query.ReadEntry.get(ReadEntry.java:154)
at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1060)
at org.simantics.db.impl.query.QueryProcessor.queryRead(QueryProcessor.java:853)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1940)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1927)
at org.simantics.db.layer0.adapter.impl.EntityInstances.findRec(EntityInstances.java:135)
at org.simantics.db.layer0.adapter.impl.EntityInstances.find(EntityInstances.java:162)
at org.simantics.db.layer0.adapter.impl.EntityInstances.find(EntityInstances.java:53)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.findSearchContributions(SearchServiceImpl.java:594)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.getSearchEnginesByModel(SearchServiceImpl.java:510)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl.access$5(SearchServiceImpl.java:499)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl$6.perform(SearchServiceImpl.java:559)
at org.simantics.workbench.internal.contributions.search.SearchServiceImpl$6.perform(SearchServiceImpl.java:1)
at fi.vtt.simantics.procore.internal.SessionImplSocket$6.run(SessionImplSocket.java:1525)
at fi.vtt.simantics.procore.internal.SessionRequestManager$1.run(SessionRequestManager.java:123)
at org.simantics.db.impl.query.QueryThread.run(QueryThread.java:251)
Caused by: org.simantics.db.layer0.genericrelation.IndexException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.simantics.db.indexing.IndexedRelationsImpl.waitLoaded(IndexedRelationsImpl.java:182)
at org.simantics.db.indexing.IndexedRelationsImpl.queryResources(IndexedRelationsImpl.java:308)
at org.simantics.db.layer0.genericrelation.DependenciesRelation.queryResources(DependenciesRelation.java:238)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:70)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:54)
at org.simantics.db.layer0.genericrelation.DependencyResources.apply(DependencyResources.java:1)
at org.simantics.db.layer0.adapter.impl.EntityInstances$QueryIndex.perform(EntityInstances.java:92)
at org.simantics.db.layer0.adapter.impl.EntityInstances$QueryIndex.perform(EntityInstances.java:1)
at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1050)
... 14 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@\\In-pactServer\Users\john.rassin\My Documents\tmp\Workspace\.metadata\.plugins\org.simantics.db.indexing\index\6.0.c281305b-ff00-40e9-99fe-d12d01f3a494.41151.196837\write.lock: java.nio.channels.OverlappingFileLockException
at org.apache.lucene.store.Lock.obtain(Lock.java:89)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:724)
at org.simantics.db.indexing.IndexedRelationsSearcherBase.initializeIndex(IndexedRelationsSearcherBase.java:689)
at org.simantics.db.indexing.IndexedRelationsImpl.waitLoaded(IndexedRelationsImpl.java:176)
... 22 more
Caused by: java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source)
at sun.nio.ch.SharedFileLockTable.add(Unknown Source)
at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)
at java.nio.channels.FileChannel.tryLock(Unknown Source)
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:169)
at org.apache.lucene.store.Lock.obtain(Lock.java:96)
... 25 more
tuukka.lehtonen
Posts: 1
Joined: January 9th, 2017, 10:20 am

Re: No symbols and model

Post by tuukka.lehtonen » January 9th, 2017, 10:29 am

Hello,

based on the trace you're trying to use a network drive for storing the workspace. I have no idea yet why exactly Lucene indexing can fail in this case. However, https://bugs.eclipse.org/bugs/show_bug.cgi?id=438813 shows a very similar case where the workspace has also been stored on a network drive.

Is it possible for you to try to create the workspace on a local drive instead of a network drive?

-Tuukka
John_R
Posts: 3
Joined: December 20th, 2016, 12:19 pm

Re: No symbols and model

Post by John_R » January 10th, 2017, 12:50 pm

Hi,

I've made a workspace in the root of my C-drive. Although the log shows no errors, symbols and model are not shown.

John.
Post Reply