Comments (4)
[pipeline_inspection_reasoner-1] [ERROR] [1673533577.337098677] [pipeline_inspection_reasoner]: Error in perform_reasoning: 'NoneType' object is not subscriptable
This error is also happening with lower rates, but less frequently. Unfortunately, I don't have any more info.
My guess is that is has something to do with reading/writing from/to the ontology.
from mc_mros_reasoner.
[pipeline_inspection_reasoner]: In Analyze, exception returned: 'NoneType' object is not subscriptable
from mc_mros_reasoner.
This looks like a concurrency error.
That should be easy enough to test.
If it is a concurrency error, there is some guidance:
https://owlready2.readthedocs.io/en/latest/sync.html?highlight=concurrent#synchronization
says:
- Open the quadstore in non-exclusive mode (exclusive = False in set_backend()).
- Perform each modification to an ontology inside a “with ontology:” block. Owlready maintain a lock for each quadstore, which prevents multiple writes at the same time. Thus, for improving performances, you should also avoid long computation inside “with ontology:” blocks.
- Call World.save() at the end of each “with ontology:” block, in order to commit the changes to the quadstore database.
that means you'd have to adjust
like so
world = World()
world.set_backend(filename = "/path/to/your/file.sqlite3", exclusive = False)
and also adjust the the rest that accesses the backend according to points 2 and 3...
from mc_mros_reasoner.
that still would not allow you to run the thing faster though, just with more waiting and fewer bugs.
Regardless of whether or not your current problem is caused by concurrency...in the context of ROS that's always a problem. So this should be concurrency safe anyway.
from mc_mros_reasoner.
Related Issues (20)
- Adapt set_initial_fd method to work with the new multi objective feature
- Double if statements in diagnostic_callback in ros_reasoner.py
- Define node that needs to be changed with a new configuration HOT 3
- Separate Analyze, Plan, Execute and KB interface
- Implement Functional Hierarchy for MROS2
- Allow custom utility functions to be used in an easy way HOT 1
- Invert RequiredBy relationship in tomasys HOT 1
- Measured QAs are not saved unless there is a FG to attach it to HOT 4
- Review all searches being performed in the ontology
- reasoner.py and tomasys.py need to be refactored HOT 1
- Error happens when mock_node is restarted HOT 1
- Change /ros_reasoner/change_node_mode service name HOT 3
- Tomasys being used as abox, even though it is supposed to be tbox HOT 3
- Allow selection of best function design to be overwritten HOT 4
- Tomasys wrapper class HOT 4
- Indentation bug
- Domain-specific knowledge is currently encoded in the generic parsing to tomasys, including domain knowledge rules HOT 2
- Error when deleting objective. Doesn't happen very often.
- Error in SWRL rules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mc_mros_reasoner.