GithubHelp home page GithubHelp logo

double free or corruption (out) about river HOT 7 CLOSED

Guoc0529 avatar Guoc0529 commented on June 25, 2024
double free or corruption (out)

from river.

Comments (7)

Unsigned-Long avatar Unsigned-Long commented on June 25, 2024

Can you point out the specific location of this error? I saw a warning above the error message in the picture that shouldn't appear: "Framebuffer with requested attributes not available, Using available framebuffer...". This warning does not come from our library.

I searched and found that it comes from the visualization library Pangolin. And this problem is also explained in its readme. Hope this helps!

image

from river.

Guoc0529 avatar Guoc0529 commented on June 25, 2024

I've identified that the error occurred here
Uploading 2024-04-12 17-09-06屏幕截图.png…

from river.

Guoc0529 avatar Guoc0529 commented on June 25, 2024

image
I've identified that the error occurred here

from river.

Unsigned-Long avatar Unsigned-Long commented on June 25, 2024

This doesn't seem to make sense. We don't have any problems with our computer at all. What do you think is the problem? 😭

from river.

YXT-yang avatar YXT-yang commented on June 25, 2024

"Hi bro, I had a similar problem once. I solved the problem by modifying the CMakeLists.txt file. Modify lines 10 and 11 as follows:"
Before modification

set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -march=native")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native")

After modification

set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")

from river.

Guoc0529 avatar Guoc0529 commented on June 25, 2024

“嗨兄弟,我曾经遇到过类似的问题。我通过修改CMakeLists.txt文件解决了该问题。修改第10行和第11行如下:” 修改前

set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -march=native")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native")

修改后

set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")

Bro, you're really talented!"

from river.

Unsigned-Long avatar Unsigned-Long commented on June 25, 2024

Awesome, problem solved 😃 .

The -march=native option in GCC compiler is used to automatically set compilation flags based on the features supported by your CPU. If you're using an Intel or AMD CPU and a GCC version 4.2.3 or higher, it's recommended to use -march=native.

This option adjusts the compilation settings according to your CPU architecture and instruction set extensions, optimizing the generated machine code. It selects the best instruction set based on your CPU's capabilities, which can improve program performance.

In summary, -march=native is a convenient option that automatically optimizes compilation results based on your hardware environment .

from river.

Related Issues (3)

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.