Comments (12)
I think that it a memory leak problem.
- https://stackoverflow.com/questions/57616404/what-does-it-mean-double-free-detected-in-tcache-2-while-using-mpz
- https://stackoverflow.com/questions/16698688/free-no-double-free-detected
I ran ambf_simulator with
valgrind --leak-check=yes --log-file="leak.txt" ./ambf_simulator
Here is my log file from running it with those tags
leak.txt
This somewhat makes sense because the debug mode sets things to 0 where release mode had garbage collection problem or something like that. Why this problem is happening in 20.04 is still strange.
from ambf.
Here is the similar report but running with the debug flag. When running in debug mode, the simulator window opens up
leak.txt
from ambf.
Thanks for trying to figure this out. I am not very well versed with the output of Valgrind other than the commonly reported metrics. I would like to go over this using GDB with breakpoints. Can you confirm that this is the master branch that you are running? Can you quickly test this branch and report if you see similar issues.
https://github.com/WPI-AIM/ambf/tree/feat-communication
If so, it would be easier to add the fixes here as well as this will be merged into the master soon.
from ambf.
Same issue, I am trying to spin up a VM to test in a vanilla environment
from ambf.
Are any of the branches stable on Ubuntu 20.04 yet?
from ambf.
Are any of the branches stable on Ubuntu 20.04 yet?
no, I just tied on my VM running PopOs 20.04 on it still throws the same mem error
from ambf.
I don't have much bandwidth these days to debug on Ubuntu 20.04, although based on a quick session with Nathaniel, we found that in Debug mode, there weren't any memory leak issues. This makes it super tricky to debug and thus I am postponing it for the moment.
from ambf.
It appears that two methods with a return
type of bool
weren't returning anything if the intended tasks were successful. This still shouldn't cause the crash but apparently it did. Worthwhile for someone else to check as well if this works.
from ambf.
interesting, ill check it soon
from ambf.
It appears that two methods with a
return
type ofbool
weren't returning anything if the intended tasks were successful. This still should cause the crash but apparently it did. Worthwhile for someone else to check as well if this works.
I just downloaded & built the ambf-1.0 branch on Kubuntu 20.04; It seems to be have built successfully and it is launching the demo objects without issue.
from ambf.
Thanks for checking @montematico. I found out that not returning
in method/function
that expects a return
is undefined behaviour. So we were just lucky previously where the crashes weren't happening.
https://eel.is/c++draft/stmt.return
C++ Section 8.7.4
Flowing off the end of a constructor, a destructor, or a non-coroutine function with a cv void return type is equivalent to a return with no operand. Otherwise, flowing off the end of a function other than main or a coroutine ([dcl.fct.def.coroutine]) results in undefined behavior.
from ambf.
Should be fixed in ambf-2.0
from ambf.
Related Issues (20)
- AMBF simulator window shuts down upon boot (ambf-2.0 branch) HOT 10
- Specifying the monitor number in the camera description in the ADF file doesn't work
- ROS2 support HOT 1
- Store the Specification Data (i.e. ADF Raw Data) in the Attributes
- Setting the scale parameter in the ADF does not scale some joints
- Fix CMake out-of-source build HOT 3
- Systemwide access to ROS modules error: no such directory as ./devel HOT 11
- Geomagic Touch connection problem HOT 8
- ambf python client joint order can mismatch
- ambf python client mask joints up to last used idx HOT 4
- Joints fail to find parent or child if they have different namespace
- Specify whether a mesh has a texture enabled/assigned for a shader HOT 1
- No force feedback and showing 2 objects instead of one
- Frames are oriented differently (unit quaternion) when AMBF is launched in headless mode HOT 2
- Error with raven2 launch file HOT 1
- Add graphics update rate to World/State rostopic message HOT 1
- Can't import ambf_client HOT 5
- [Mac OS Build fail] Error: use of undeclared identifier 'GL_RGBA32F'
- Ubuntu 20.04 Build Error HOT 1
- ERROR! FAILED TO INITIALIZE GLFW LIBRARY 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 ambf.