Stream: brlcad

Topic: vol error


view this post on Zulip Sumagna Das (Aug 19 2020 at 17:53):

@Sean when i was trying to make the skeleton's vol, i encountered something

view this post on Zulip Sumagna Das (Aug 19 2020 at 17:55):

i dont know if its an error or not but it was a segmentation fault(core dumped)

view this post on Zulip Sumagna Das (Aug 19 2020 at 17:58):

i was trying to use draw skel where skel was a vol

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:00):

i moved the .g file from my desktop to a folder but forgot to move the bw file which was associated with the vol

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:01):

when i tried to draw the vol, it didnt draw it.

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:01):

it just straight up crashed

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:07):

Screencast-from-19-08-20-113649-PM-IST.webm

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:07):

see here

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:07):

i moved the files to show that it straight up crashed

view this post on Zulip Sumagna Das (Aug 19 2020 at 18:10):

(i used draw * because ls was not working and i couldnt remember the name of the vol)

view this post on Zulip Sumagna Das (Aug 21 2020 at 15:47):

Is that supposed to happen?

view this post on Zulip starseeker (Aug 21 2020 at 16:03):

Is what supposed to happen?

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:05):

Sumagna Das said:

(i used draw * because ls was not working and i couldnt remember the name of the vol)

Sumagna Das said:

i moved the files to show that it straight up crashed

Sumagna Das said:

Screencast-from-19-08-20-113649-PM-IST.webm

Sumagna Das said:

it just straight up crashed

Sumagna Das said:

when i tried to draw the vol, it didnt draw it.

Sumagna Das said:

i moved the .g file from my desktop to a folder but forgot to move the bw file which was associated with the vol

Sumagna Das said:

i was trying to use draw skel where skel was a vol

Sumagna Das said:

i dont know if its an error or not but it was a segmentation fault(core dumped)

read these

view this post on Zulip starseeker (Aug 21 2020 at 16:05):

Ah, from yesterday. First question - how is ls failing?

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:06):

dont know

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:06):

lemme check it once again

view this post on Zulip starseeker (Aug 21 2020 at 16:06):

If ls doesn't list the geometry, everything else is suspect - that's a very basic, low level operation.

view this post on Zulip starseeker (Aug 21 2020 at 16:07):

My first step would be to put a debugger on it and see what's causing the crash. Since ls doesn't work something is invalid, the question is what.

view this post on Zulip starseeker (Aug 21 2020 at 16:08):

This is a consequence of your creating a vol object? (i.e. if you first make a sph in the database that works?)

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:09):

1) ls actually doesnt work
2) this is not a consequence of creating the vol but when it cant find the file associated with the vol. It gives a warning at first then crashes

view this post on Zulip starseeker (Aug 21 2020 at 16:10):

So if you make a sphere in the database as well, does ls show that?

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:11):

it shows the sph but not the vols yet the vols exist

view this post on Zulip starseeker (Aug 21 2020 at 16:11):

So that'd be the first question I'd try to debug - why does ls not see the vol when it does see the sph?

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:12):

hmm

view this post on Zulip starseeker (Aug 21 2020 at 16:12):

src/libged/ls/ls.c

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:13):

i saw it when i was creating the vol of the skelly but forgot to report it to you guys

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:28):

Thread 1 "mged" received signal SIGSEGV, Segmentation fault.
0x00007ffff783d45a in rt_vol_plot (vhead=0x7fffffffc840, ip=0x7fffffffc890,
    UNUSED_ttol=0x555555916c30, UNUSED_tol=0x555555916c80,
    UNUSED_info=0x7fffffffc860)
    at /mnt/sda2/github/brlcad/src/librt/primitives/vol/vol.c:993
warning: Source file is more recent than executable.
993         v1 = VOL(vip, x, y, z);

view this post on Zulip Sumagna Das (Aug 21 2020 at 16:28):

this is what it says

view this post on Zulip starseeker (Aug 21 2020 at 16:35):

So something about the data is invalid. The question is how it got to that state - you'll need to work backwards. What is the VOL function or macro, what is vip, what should be in it, and how is it supposed to get into it? What happened instead, and why?

view this post on Zulip Sumagna Das (Aug 21 2020 at 17:35):

all i had to get into that state was move the .bw file associated to the VOL to somewhere else where the file doesnt think it is

view this post on Zulip starseeker (Aug 21 2020 at 17:38):

And everything worked before you did that?

view this post on Zulip Sumagna Das (Aug 21 2020 at 17:38):

yea

view this post on Zulip starseeker (Aug 21 2020 at 17:39):

That sounds like there's some missing validation in the listing and lookup code for vol objects.

view this post on Zulip Sumagna Das (Aug 21 2020 at 17:39):

might be

view this post on Zulip starseeker (Aug 21 2020 at 17:40):

I'm in the middle of something right now - I'll see if I can reproduce the issue later.

view this post on Zulip Sumagna Das (Aug 21 2020 at 17:40):

ok

view this post on Zulip Sumagna Das (Aug 21 2020 at 17:41):

i moved the files back to where they should be and the SIGSEGV is gone but lsstill cant find the vols

view this post on Zulip Sumagna Das (Aug 21 2020 at 17:48):

starseeker said:

I'm in the middle of something right now - I'll see if I can reproduce the issue later.

i also cant see into the code where this issue is happening right now so i reported to you guys so that you can see whats happening and try to fix it

view this post on Zulip starseeker (Aug 21 2020 at 20:45):

r76876 should fix the crash - I can't reproduce the ls issue. What did you name your vol primitive?

view this post on Zulip Sumagna Das (Aug 22 2020 at 05:22):

starseeker said:

r76876 should fix the crash - I can't reproduce the ls issue. What did you name your vol primitive?

skel

view this post on Zulip Sumagna Das (Aug 22 2020 at 05:22):

i will see to that

view this post on Zulip Sumagna Das (Aug 24 2020 at 20:02):

The vol segmentation fault is gone in the most recent revision. Don't know why that happened in an earlier one

view this post on Zulip Sumagna Das (Aug 24 2020 at 20:02):

But the ls issue is still there. Might be a problem with my .g file

view this post on Zulip Sumagna Das (Aug 24 2020 at 20:02):

Will upload it tomorrow if you want to see it

view this post on Zulip starseeker (Aug 24 2020 at 20:04):

sure

view this post on Zulip Sumagna Das (Aug 25 2020 at 06:55):

skel.g
the .g file

view this post on Zulip Sumagna Das (Aug 25 2020 at 06:56):

all_layers.bw
the .bw file associated with the vol if you need it

view this post on Zulip starseeker (Aug 25 2020 at 11:47):

Oh - somehow, you had the "hidden" attribute set on it. Try:

mged> unhide skel
mged> ls

view this post on Zulip Sumagna Das (Aug 25 2020 at 14:22):

will try that

view this post on Zulip Sumagna Das (Aug 25 2020 at 14:26):

starseeker said:

Oh - somehow, you had the "hidden" attribute set on it. Try:

mged> unhide skel
mged> ls

i didnt set the hidden attribute on the skel vol then how did it happen, any ideas?

view this post on Zulip starseeker (Aug 25 2020 at 15:30):

did you accidentally type "hide" at some point?

view this post on Zulip Sumagna Das (Aug 25 2020 at 15:58):

starseeker said:

did you accidentally type "hide" at some point?

never

view this post on Zulip Sumagna Das (Aug 25 2020 at 15:59):

i dont even know about most of the commands in brlcad(going to try them out after my exams)

view this post on Zulip Sean (Aug 25 2020 at 21:00):

Sumagna Das said:

i dont know if its an error or not but it was a segmentation fault(core dumped)

Crashing is always an error ;)

view this post on Zulip Sean (Aug 25 2020 at 21:04):

That is bizarre that it got hidden. We have very little code that actually will mark an object hidden... my first guess would be to ask if that .g had been edited with your GUI app or with the coreInterface at some point -- maybe it does something with the hidden flag.

view this post on Zulip Sumagna Das (Aug 26 2020 at 03:29):

Sean said:

Sumagna Das said:

i dont know if its an error or not but it was a segmentation fault(core dumped)

Crashing is always an error :wink:

the seg fault got fixed in the recent revision

view this post on Zulip Sumagna Das (Aug 26 2020 at 03:29):

Sean said:

That is bizarre that it got hidden. We have very little code that actually will mark an object hidden... my first guess would be to ask if that .g had been edited with your GUI app or with the coreInterface at some point -- maybe it does something with the hidden flag.

i only opened tthe .g file in mged and nowhere else

view this post on Zulip starseeker (Aug 26 2020 at 12:39):

Only thing I can think is that when you had the segfault crash something odd may have happened to the .g file. Regardless, it hasn't re-occurred? And if you go through the same steps to recreate the file, it works cleanly and doesn't hide it?

view this post on Zulip Sean (Aug 26 2020 at 15:41):

yeah, if you would, see if you can reproduce the error

view this post on Zulip Sumagna Das (Aug 26 2020 at 18:43):

Just fyi, the installation of mged I used while creating the .g file is from an old revision (probably from 76k-76.1k range)

view this post on Zulip Sumagna Das (Aug 26 2020 at 18:44):

Anyways I will try to recreate the error if you want

view this post on Zulip Sean (Aug 26 2020 at 18:45):

that would be great. suggest trying to reproduce at all, and then if you can figure out a specific sequence of steps, even better.

view this post on Zulip Sumagna Das (Aug 27 2020 at 08:33):

i tried recreating the hiding error but couldnt recreate it

view this post on Zulip Sumagna Das (Aug 27 2020 at 08:34):

but the segfault is occuring anyways

view this post on Zulip Sumagna Das (Aug 27 2020 at 08:36):

is there a way to see command history for a file?

view this post on Zulip Sumagna Das (Aug 27 2020 at 08:36):

i dont remember using hide command but still would like to check to see if it was my fault or the segfault

view this post on Zulip starseeker (Aug 27 2020 at 11:57):

You're still getting a segfault in trunk, or you're using the older version?

view this post on Zulip Sumagna Das (Aug 27 2020 at 11:58):

the older version i think

view this post on Zulip Sumagna Das (Aug 27 2020 at 11:58):

Sumagna Das said:

Just fyi, the installation of mged I used while creating the .g file is from an old revision (probably from 76k-76.1k range)

i said so

view this post on Zulip starseeker (Aug 27 2020 at 11:59):

Yes, that was the revision you used to create it - I was making sure you are using the same version to do the testing now.

view this post on Zulip starseeker (Aug 27 2020 at 11:59):

There is some command history, but I don't believe it persists from one MGED session to the next by default

view this post on Zulip Sumagna Das (Aug 27 2020 at 12:00):

does the seg fault in older version matter now? its fixed in the recent one

view this post on Zulip starseeker (Aug 27 2020 at 12:00):

It doesn't matter, unless it was the cause of the hiding issue. If it was though, it may be hard to reproduce - corruption behavior is seldom deterministic.

view this post on Zulip Sumagna Das (Aug 27 2020 at 12:01):

i am not getting the hide issue right now even in the older version

view this post on Zulip Sumagna Das (Aug 27 2020 at 12:02):

yet i dont remember using hide when i was creating the vol

view this post on Zulip Sumagna Das (Aug 27 2020 at 12:02):

so still no idea how that happened

view this post on Zulip starseeker (Aug 27 2020 at 12:02):

OK. Worth checking, but if it wasn't that then I don't have any other immediate ideas.

view this post on Zulip Sean (Aug 28 2020 at 00:08):

thanks for checking @Sumagna Das

view this post on Zulip Sumagna Das (Aug 28 2020 at 06:49):

No problem


Last updated: Oct 09 2024 at 00:44 UTC