Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8727899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:31:33+00:00 2026-06-13T08:31:33+00:00

So I have this matrix from the Eigen library. Eigen::MatrixXd And it is filled

  • 0

So I have this matrix from the Eigen library.

Eigen::MatrixXd

And it is filled with data and is 4×3900 points. It is used in a function that has the following lines:

Now the matrix is not even used in this set of code, and for reference it is called modelPointCloud.
Using GDB I step through the lines in the image. For the workIndex and tid line the matrix is the correct size (ie. 4×3900). But when I step to the next line (idTableLock) it is still fine but when i execute that line suddenly the matrix changes to being 0x167 which happens every time but is seemingly a random number.

Now because of that I get this error:

enter image description here

On this line:

Which makes sense because the matrices are no longer the correct size.

Now other threads are running but none should have access to this data type. Does anyone have an idea about why this is happening? Why would it be that particular line that changes the matrix?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:31:33+00:00Added an answer on June 13, 2026 at 8:31 am

    My guess is that this has nothing to do with Eigen. To me this sounds like memory corruption. You may not directly access the memory through your modelPointCloud variable but are likely writing over the memory that holds the size of the matrix. These types of bugs are quite hard to debug. It’s likely you are using an out of bounds index somewhere. Have a look at other posts on this subject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Supose I have a matrix. This matrix is blank except some points that create
I have a matrix of objects that contains data in this form: name A,2,name
I have this function that loads a big bitmap from SD and rotates it.
We have an application that stores a sparse matrix. This matrix has entries that
I have this following numpy matrix that I want to sort in ascending order
I have a function like this: MyFunction(double matrix[4][4]) {/*do stuff*/} I am calling this
Is it possible to construct a numpy matrix from a function? In this case
I have this matrix in R, called MRASTI genereatet from the command MRASTI <-
I have this cells array which is came from a mat lab code that
I have this matrix of size 10000 by 1. I want to remove some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.