@Sean when i was trying to make the skeleton's vol, i encountered something
i dont know if its an error or not but it was a segmentation fault(core dumped)
i was trying to use draw skel
where skel
was a vol
i moved the .g file from my desktop to a folder but forgot to move the bw file which was associated with the vol
when i tried to draw the vol, it didnt draw it.
it just straight up crashed
Screencast-from-19-08-20-113649-PM-IST.webm
see here
i moved the files to show that it straight up crashed
(i used draw *
because ls
was not working and i couldnt remember the name of the vol)
Is that supposed to happen?
Is what supposed to happen?
Sumagna Das said:
(i used
draw *
becausels
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:
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
whereskel
was avol
Sumagna Das said:
i dont know if its an error or not but it was a segmentation fault(core dumped)
read these
Ah, from yesterday. First question - how is ls failing?
dont know
lemme check it once again
If ls doesn't list the geometry, everything else is suspect - that's a very basic, low level operation.
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.
This is a consequence of your creating a vol object? (i.e. if you first make a sph in the database that works?)
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
So if you make a sphere in the database as well, does ls show that?
it shows the sph but not the vols yet the vols exist
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?
hmm
src/libged/ls/ls.c
i saw it when i was creating the vol of the skelly but forgot to report it to you guys
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);
this is what it says
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?
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
And everything worked before you did that?
yea
That sounds like there's some missing validation in the listing and lookup code for vol objects.
might be
I'm in the middle of something right now - I'll see if I can reproduce the issue later.
ok
i moved the files back to where they should be and the SIGSEGV is gone but ls
still cant find the vols
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
r76876 should fix the crash - I can't reproduce the ls issue. What did you name your vol primitive?
starseeker said:
r76876 should fix the crash - I can't reproduce the ls issue. What did you name your vol primitive?
skel
i will see to that
The vol segmentation fault is gone in the most recent revision. Don't know why that happened in an earlier one
But the ls issue is still there. Might be a problem with my .g file
Will upload it tomorrow if you want to see it
sure
skel.g
the .g file
all_layers.bw
the .bw file associated with the vol if you need it
Oh - somehow, you had the "hidden" attribute set on it. Try:
mged> unhide skel
mged> ls
will try that
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?
did you accidentally type "hide" at some point?
starseeker said:
did you accidentally type "hide" at some point?
never
i dont even know about most of the commands in brlcad(going to try them out after my exams)
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 ;)
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.
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
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
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?
yeah, if you would, see if you can reproduce the error
Just fyi, the installation of mged I used while creating the .g file is from an old revision (probably from 76k-76.1k range)
Anyways I will try to recreate the error if you want
that would be great. suggest trying to reproduce at all, and then if you can figure out a specific sequence of steps, even better.
i tried recreating the hiding error but couldnt recreate it
but the segfault is occuring anyways
is there a way to see command history for a file?
i dont remember using hide command but still would like to check to see if it was my fault or the segfault
You're still getting a segfault in trunk, or you're using the older version?
the older version i think
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
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.
There is some command history, but I don't believe it persists from one MGED session to the next by default
does the seg fault in older version matter now? its fixed in the recent one
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.
i am not getting the hide issue right now even in the older version
yet i dont remember using hide when i was creating the vol
so still no idea how that happened
OK. Worth checking, but if it wasn't that then I don't have any other immediate ideas.
thanks for checking @Sumagna Das
No problem
Last updated: Jan 09 2025 at 00:46 UTC