Giter Site home page Giter Site logo

Comments (12)

nag92 avatar nag92 commented on August 18, 2024

I think that it a memory leak problem.

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.

nag92 avatar nag92 commented on August 18, 2024

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.

adnanmunawar avatar adnanmunawar commented on August 18, 2024

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.

nag92 avatar nag92 commented on August 18, 2024

Same issue, I am trying to spin up a VM to test in a vanilla environment

from ambf.

montematico avatar montematico commented on August 18, 2024

Are any of the branches stable on Ubuntu 20.04 yet?

from ambf.

nag92 avatar nag92 commented on August 18, 2024

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.

adnanmunawar avatar adnanmunawar commented on August 18, 2024

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.

adnanmunawar avatar adnanmunawar commented on August 18, 2024

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.

nag92 avatar nag92 commented on August 18, 2024

interesting, ill check it soon

from ambf.

montematico avatar montematico commented on August 18, 2024

It appears that two methods with a return type of bool 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.

adnanmunawar avatar adnanmunawar commented on August 18, 2024

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.

adnanmunawar avatar adnanmunawar commented on August 18, 2024

Should be fixed in ambf-2.0

from ambf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.