Git Product home page Git Product logo

Comments (4)

mvirgo avatar mvirgo commented on July 24, 2024

Hi there -

Please note that Knowledge and Student Hub should be utilized for these type of issues.

Most of the time, a Segmentation Fault on this project occurs due to an index out of bounds error. I'd check for those first.

If you think it is likely due to your ipopt installation, note that there is also now a classroom workspace in the MPC Project lesson with ipopt pre-installed - if you want, you can add your code in as a new directory there, and test out if the error still exists.

from carnd-mpc-quizzes.

HarrisonHYZ avatar HarrisonHYZ commented on July 24, 2024

@mvirgo Hi, I tried the same codes in the classroom workspace, it works well and I got the correct result. Now I'm doing the mpc project, still get the same segmentation fault: 11 with the first iteration at the same code line. And I copy my code to the classroom workspace. It compiles successfully and can run the ./mpc. Please suggest the next step to debug this. Thank you.

from carnd-mpc-quizzes.

mvirgo avatar mvirgo commented on July 24, 2024

As I noted before, you need to try asking Knowledge and Student Hub. This is not the place for debugging your own code, but for issues related to the code contained in the repository.

The most common reason for this is on an index out of bounds error, or if you have a pointer going awry, although the pointer issue is usually less common on this project. So, any arrays you set, or loops you do, I would check to make sure you aren't trying to call something outside of the bounds of the given array.

from carnd-mpc-quizzes.

mvirgo avatar mvirgo commented on July 24, 2024

Closing since no further comments in 2+ weeks

from carnd-mpc-quizzes.

Related Issues (12)

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.