Skip to content

[BUG] The qpOASES example crashes on Ubuntu 26.04 #1

@juanjqo

Description

@juanjqo

Code of Conduct

By submitting this report you automatically agree that you've read and accepted the following conditions.

  • Support for DQ Robotics is given voluntarily and it's not the developers' role to educate and/or convince anyone of their vision.
  • Any possible response and its timeliness will be based on the relevance, accuracy, and politeness of a request and the following discussion.
  • If a DQ Robotics member replies, the user must let them know if their response solves their issue or not.
  • Any suggestion/advice/request made by anyone, as well intentioned as they might be, might not be incorporated into DQ Robotics.

Bug description

The qpOASES example crashes on Ubuntu 26.04. I don't know why this is happening yet.

To Reproduce

Steps to reproduce:

docker pull ghcr.io/dqrobotics/container:resolute

docker run -it --name=dqrobotics \
--rm --privileged --network=host --ipc=host --env=DISPLAY \
ghcr.io/dqrobotics/container:resolute /bin/bash
cd ~/ && git clone https://github.com/dqrobotics/cpp-examples.git
cd ~/cpp-examples/cmake/qpoases_interface && mkdir -p build
cd ~/cpp-examples/cmake/qpoases_interface/build && cmake .. && make 
./qpoases_interface

Code

code here

Output

[100%] Linking CXX executable qpoases_interface
[100%] Built target qpoases_interface
/usr/include/c++/15/bits/stl_vector.h:1263: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = double; _Alloc = std::allocator<double>; reference = double&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted                    (core dumped) ./qpoases_interface

Expected output

./qpoases_interface 
q_dot is  -0.00311208   0.00617398   0.00304193   -0.0015048   0.00304193 -0.000791966   0.00304193
current equality tolerance: 1e-12
Checking Problem Size: 5
Checking Problem Size: 6
Checking Problem Size: 7
Checking Problem Size: 8
Checking Problem Size: 9
Checking Problem Size: 10

Environment:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions