i dont know what this means( not related to python-brlcad)
what should i do to make this go away
what are you doing that causes that to be displayed?
this
it looks like an mged error
so what to do?
well several things ... first, post your .g file so I can take a look at it
second, there are lower-level ways to inspect the .g file that you should use if you're inspecting python-generated .g files for validity.
this was a random .g file i made while testing if the interface works
like?
What do you click on that causes the error dialog?
the "l" command will list an object's details
mged> l comb0
comb0: REGION id=1000 (air=0, los=100, GIFTmater=1) --
Shader 'plastic { di .9 sp .4}'
Color 255 0 0
(These material properties override all lower ones in the tree)
(empty tree)
i just pressed the ok button as usual
I can't reproduce the error, but I do see that the comb is empty which is unusual/invalid. that may be the cause of the error.
do you still get the error if you reopen the .g file?
lemme see
yup
still getting the error
did you compile brl-cad? what version are you using?
dev-7.31.0
huh, weird
should i pull the recent commits and build again?
no, like I said -- you don't need to use the combination editor, probably shouldn't be using it for this.
hmm
see if one of the sample models gives you an error
try the all.g object in the moss.g sample database
yea done
did it work without error doing the same combination editor steps?
nope
still the same
okay, well that's understanding progress! that means it's not anything specific to the python work. something appears to be wrong with your mged setup/compilation/install/etc.
you could try recompiling fresh, but like I said, it's not necessary for what you're doing. the 'l' command will tell you what it's parameters are
(deleted)
same parameters
what should i do to fix it?
well I don't yet have an idea what's causing the error, so my first step would be to simply compile cleanly with BRLCAD_BUNDLED_LIBS=ON to see if it related to some system library issue. could be some issue with system tcl/tk/itcl/itk/iwidgets
let me see
got to get some rest, but catch up again in a few hours
let me know how it goes!
bye
the build will take some time so i might leave it right now
k
how much time does the build takes anyway on a linux machine having 4 gb ram?
totally depends on how many cores you have, how many you told it to use during make, how fast the cores are, how fast your disks are, .. but it's typically in the 5-15 min timeframe when compiling in parallel
ok
if you have few cores, slow cores, and/or a slow hard drive, it can be 5x slower
something like a power8 with 128 cores can compile from a clean checkout in about 2 minutes, mostly waiting on the hard disk and processes to run
right now, rebuilding brlcad with BRLCAD_BUNDLED_LIBS=ON as you said
couldnt rebuild it earlier because of some personal problems
rebuilt yet?
yep
sorry for the late reply
i wasnt about my laptop
still gives the same error
@Sumagna Das what is your operating system? you said linux?
can you provide the whole output from cmake?
Sean said:
Sumagna Das what is your operating system? you said linux?
Ubuntu 20.04 LTS
is the output of cmake supposed to be stored somewhere?
It's not stored -- you can just rm -rf CMake* and then: cmake -DBRLCAD_BUNDLED_LIBS=ON .. 2>&1 | tee cmake.log
wait a bit
Actually it should be (more or less) stored at CMakeFiles/CMakeOutput.log (that'll be more verbose than the screen printing though...)
CMakeOutput.log
the more verbose one
@starseeker any thoughts on sumanga's error? getting an error on the combination panel in mged. trunk build.
if this is somehow fixed in recent revisions, then i dont have the recent ones
I find the actual output often more informative than the CMakeOutput.log file... wish it had both.
Saw that - I can't reproduce it on Linux or Windows with a trunk build... very strange
My only thought right now is that somehow there is interference from another/older Tcl/Tk (maybe one installed in the CMAKE_INSTALL_PREFIX location, for example)
starseeker said:
My only thought right now is that somehow there is interference from another/older Tcl/Tk (maybe one installed in the CMAKE_INSTALL_PREFIX location, for example)
how to check if there's one?
You didn't happen to set any environment variables did you?
set | grep -i brl
output
I see three or four BRL-CAD's in your path there... maybe some incompatibility was introduced
how are you running mged -- what's the exact command line?
path?
and FYI, you don't need to use pastebin - you can just paste things in here
i know but it has become a sort of an habit
no, I mean what exactly do you type?
mged
which mged
but after the build, i used from the build directory ( bin/mged)
before that, from /usr/brlcad/dev-7.31.0/bin/mged
both give the error yes?
yea
so yeah, that's smelling like maybe the issue
what is the issue?
mv /usr/brlcad/dev-7.31.0 /usr/brlcad/dev-7.31.0-disabled
wait
and then retry the one you just build in bin/mged in the build dir
should i rebuild the whole thing?
only if you still see the error
still the same
What does the MGED command "bu_dir lib" report?
also, what does "bin/rt" report (outside mged)
starseeker said:
What does the MGED command "bu_dir lib" report?
/mnt/sda2/github/brlcad/build/lib
Sean said:
also, what does "bin/rt" report (outside mged)
BRL-CAD Release 7.31.0 The BRL-CAD Raytracer RT
Fri, 26 Jun 2020 13:11:21 +0530, Compilation 3
sumagnadas@hp-laptop
BRL-CAD Release 7.31.0 The BRL-CAD Ray-Tracing Library
Fri, 26 Jun 2020 13:11:21 +0530, Compilation 3
sumagnadas@hp-laptop
BRL-CAD Release 7.31.0 The BRL-CAD Numerical Computation Library
Fri, 26 Jun 2020 13:11:21 +0530, Compilation 3
sumagnadas@hp-laptop
BRL-CAD Release 7.31.0 The BRL-CAD Utility Library
Fri, 26 Jun 2020 13:11:21 +0530, Compilation 3
sumagnadas@hp-laptop
Compile-time debug symbols are available
Running on hp-laptop
bin/rt: BRL-CAD geometry database not specified
Usage: bin/rt [options] model.g objects...
Options:
-o filename Render to specified image file (e.g., image.png or image.pix)
-F framebuffer Render to a framebuffer (defaults to a window)
-s # Square image size (default: 512 - implies 512x512 image)
-w # -n # Image pixel dimensions as width and height
-C #/#/# Set background image color to R/G/B values (default: 0/0/1)
-W Set background image color to white
-R Disable reporting of overlaps
-A # Set image brightness, ambient light intensity (default: 0.4)
Type "bin/rt -?" for a complete list of options.
those both look right. Hm. What else is in /usr/brlcad (ls -la /usr/brlcad)
total 12
drwxr-xr-x 3 root root 4096 Jun 27 00:29 .
drwxr-xr-x 15 root root 4096 May 14 16:13 ..
drwxr-xr-x 6 root root 4096 May 14 16:14 dev-7.31.0-disabled
damn, huh
what?
okay so then lets debug the tcl and see why the error is happening...
Just this is really bizzare.
i moved the conversation here
great, good idea!
What does "env" report from the MGED command prompt?
so open the combination editor, then run "array names comb_control"
i want to ask one thing
how to copy something from the mged command window
neither ctrl-c works nor ctrl-shift-c
depends on how your window manager handles copy-paste
On Linux I select it and use the middle mouse button, but I don't know that that works on WIndows
starseeker said:
What does "env" report from the MGED command prompt?
DISPLAY=:0
HOME=/home/sumagnadas
ITCL_LIBRARY=/mnt/sda2/github/brlcad/build/lib/itcl3.4
ITK_LIBRARY=/mnt/sda2/github/brlcad/build/lib/itk3.4
LANG=en_IN
PATH=/usr/brlcad/dev-7.31.0/bin:/home/sumagnadas/.cargo/bin:/home/sumagnadas/.local/bin:/home/sumagnadas/bin:/home/sumagnadas/.mozbuild/git-cinnabar:/home/sumagnadas/.cargo/bin:/usr/brlcad/dev-7.30.5/bin:/mnt/sda2/appleseed/bin:/mnt/sda2/BRL-CAD/brlcad/build/bin/:/usr/brlcad/dev-7.30.5/bin:/mnt/sda2/appleseed/bin:/mnt/sda2/BRL-CAD/brlcad/build/bin/:/home/sumagnadas/.local/bin:/home/sumagnadas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin/python3.7:/home/sumagnadas/bin:/usr/bin/python3.7:/home/sumagnadas/bin:/root/.local/bin:/mnt/sda2/github/weechat-matrix/contrib:/mnt/sda2/PyCharm/bin:/mnt/sda2/python/bin:/mnt/sda2/github/downloads/todo.txt_cli-2.11.0/
PWD=/mnt/sda2/github/brlcad/build
TCL_LIBRARY=/mnt/sda2/github/brlcad/build/lib/tcl8.6
TERM=xterm-256color
OK, that looks right (although there are a lot of extra entries in PATH, it doesn't look like they're being used to find libraries...)
screenshot of the window works
Sean said:
so open the combination editor, then run "array names comb_control"
id_0,isRegion id_0,shader_frame id_0,name id_0,dirty_name id_0,padx id_0,bool_frame id_0,pady id_0,material id_0,color id_0,shader id_0,comb id_0,shader_gui id_0,inherit id_0,air id_0,id id_0,los
so what was the copy key?
middle button for me
middle should be paste, no?
so ctrl-c worked, and paste was the issue?
it does copy and paste for me atleast
Visual select plus middle button for pasting?
yeah, that's what sounds like happened.. middle is definitely not both copy and paste :)
starseeker said:
Visual select plus middle button for pasting?
thats what i wanted to mean
for some reason, it works now
the whole comb editor issue is gone
did you display a comb?
tclscripts/mged/comb.tcl is the only place that appears to combine comb_control and attrs.
it worked for some time and now again it doesnt work :disappointed:
it goes away after doing a unusual thing actually
That index appears to be associated with non-standard attributes assigned to combs - array names comb_control shows it when I edit a comb with such an attribute, but didn't show it previously?
what unusual thing?
and the thing is totally random
what do you mean by unusual thing?
wait i am going to record it
seen the video?
/me searches for something that will play webm
vlc?
you can change the file extension to mp4 :mischievous:
oh interesting. you're using autoname...
I got it to work, firefox was fine with it
just for testing purposes :grinning_face_with_smiling_eyes:
let me test that -- that's a feature I don't think I've ever used.... creates a comb
okay, that's it
what?
haha, that's funny...
@Sumagna Das you're using the combination editor in a way that I don't think anyone that has gone through the tutorials would ever even think to do or try. You're using it to create combinations, and that's where there's apparently a bug.
If you use it on an existing combination to inspect it or change it, there's no problem.
thats a bug?
i created a combination at the end of the video
I've never used the combination editor to create a combination. Ever.
Or at least if I ever did, it might have been 19 years ago or something ;
ohh
Screen-Shot-2020-06-26-at-3.38.10-PM.png Bug reproduces easily.
i dont know much and so i am exploring the whole UI and all the options available
I'll take a brief look to see if it's an easy fix, but if you want to try and fix it, the problem is in comb_apply in src/tclscripts/mged/comb.tcl
Probably just need to do something like initialize the array entry to empty when the comb_control is set up...
almost certainly related to the fact that it's writing out a new object and then trying to read it back in, it's missing something that it's expecting in the attrs.
i might see to that
@Sean so is this the line?
set ret [catch {eval attr set $comb_control($id,name) $comb_control($id,attrs) } comb_error ]
line no - 984, file - src/tclscripts/mged/comb.tcl
there are lines like this actually
one of them is at 984 and another one at 949
probably both of them are causing errors
You're in the right vicinity. I spent some time debugging that code when we last talked, but fixed other issues and didn't get back to the attrs issue.
before i try to fix that attrs issue, i have to look up tcl syntax
if you find any sites which explain or show tcl syntax beautifully, then please tell me about it
Last updated: Jan 09 2025 at 00:46 UTC