Stream: brlcad

Topic: put_comb


view this post on Zulip starseeker (Sep 04 2020 at 19:17):

Hey @Sean , is there any chance that there is some uncommitted work from the comb dialog refactor? src/tclscripts/mged/comb.tcl@970 has a put_comb call with 10 args, but it looks like the libged/put_comb/put_comb.c code doesn't have a case for that...

view this post on Zulip Sean (Sep 04 2020 at 19:18):

let me look

view this post on Zulip Sean (Sep 04 2020 at 19:20):

I'm only seeing 9 args, or are you counting the command name as an arg also?

view this post on Zulip starseeker (Sep 04 2020 at 19:21):

put_comb
$comb_control($id,name)
$color
$comb_control($id,shader)
$comb_control($id,inherit)
$comb_control($id,comb)
$comb_control($id,isRegion)
$comb_control($id,id)
$comb_control($id,air)
$comb_control($id,material)
$comb_control($id,los)

view this post on Zulip Sean (Sep 04 2020 at 19:22):

yeah, I just caught that -- missed color

view this post on Zulip Sean (Sep 04 2020 at 19:22):

usage on put_comb says that's supposed to be correct

view this post on Zulip starseeker (Sep 04 2020 at 19:23):

Hmm... Wonder if I messed something up in the refactor - put_comb.c code doesn't seem to cover it...

view this post on Zulip Sean (Sep 04 2020 at 19:24):

still refreshing my memory on this. I know I swapped one of the args around.

view this post on Zulip Sean (Sep 04 2020 at 19:28):

yeah, so it was calling put_comb with 10 args before the swap in r76299 too, checking the impl..

view this post on Zulip Sean (Sep 04 2020 at 19:28):

woah, what happened to the history? how did you move the files into subdirs?

view this post on Zulip Sean (Sep 04 2020 at 19:29):

oh, there we go.. whew that was weird.

view this post on Zulip Sean (Sep 04 2020 at 19:30):

I thought svn log on a dir showed history on all contents, but apparently not. had to history the file itself.

view this post on Zulip starseeker (Sep 04 2020 at 19:30):

/me has actually started using the git conversion for history lookups

view this post on Zulip starseeker (Sep 04 2020 at 19:31):

/me is liking gitk, on the whole

view this post on Zulip starseeker (Sep 04 2020 at 19:35):

(I've been periodically updating the conv10 repo on github (not final form, haven't been regenerating the account mappings) so it's current-ish on the history if it's helpful.)

view this post on Zulip Sean (Sep 04 2020 at 19:39):

yeah, totally hoping to get back to that as soon as these reviews are done. nearly there.

view this post on Zulip Sean (Sep 04 2020 at 19:39):

okay, refreshed on the change and it's what I recalled -- the last four args moved to before the region flag, but not args were added or removed, so all that updated were indicies

view this post on Zulip Sean (Sep 04 2020 at 19:40):

I see all 10 args getting accessed in the implementation

view this post on Zulip Sean (Sep 04 2020 at 19:40):

so maybe a step back -- what's the problem?

view this post on Zulip Sean (Sep 04 2020 at 19:42):

they all end up getting exercised when put_tree_into_comb_and_export() is called

view this post on Zulip Sean (Sep 04 2020 at 19:42):

notably, the 'comb' structure had most of them directly saved prior to export

view this post on Zulip starseeker (Sep 04 2020 at 19:44):

Josh reported an issue with the comb dialog in mged, which I can can confirm

view this post on Zulip starseeker (Sep 04 2020 at 19:45):

If I open all.g in mged, don't do anything, and hit apply - I get an error from put_comb and the ged_tmp shape is left in the .g file

view this post on Zulip Sean (Sep 04 2020 at 19:45):

There was an issue before too -- at least one bug was fixed, maybe another introduced?

view this post on Zulip Sean (Sep 04 2020 at 19:46):

that was a test case I specifically worked on...

view this post on Zulip Sean (Sep 04 2020 at 19:46):

/me tests

view this post on Zulip Sean (Sep 04 2020 at 19:46):

is it a tcl error or a libged error or can't tell?

view this post on Zulip Sean (Sep 04 2020 at 19:49):

okay there is something fishy in the commit history. if I do a log on put_comb.c, it's not listing some of the commits that were made to it before it moved (including the arg reordering)

view this post on Zulip Sean (Sep 04 2020 at 19:56):

I see now. Subversion apparently has a new git-like feature where its hiding commits that get incorporated via merging. So despite changes that happened on trunk in the r75719-76352 range, those commits were merged to a branch that was merged back to trunk in 76352, so svn is hiding them (-g option shows them). That's messed up...

view this post on Zulip starseeker (Sep 04 2020 at 19:59):

It's a libged error - put_comb.c:565

view this post on Zulip Sean (Sep 04 2020 at 19:59):

I can't reproduce your steps -- can you be more specific?

view this post on Zulip starseeker (Sep 04 2020 at 20:00):

I'll video it - once sec.

view this post on Zulip Sean (Sep 04 2020 at 20:00):

how are you getting to the combination editor? are you typing in all.g into the object list?

view this post on Zulip Sean (Sep 04 2020 at 20:01):

Ooooh, I see what's wrong

view this post on Zulip Sean (Sep 04 2020 at 20:02):

just looking at the code. that argc7 check is the issue.

view this post on Zulip starseeker (Sep 04 2020 at 20:03):

Do you still want the video?

view this post on Zulip Sean (Sep 04 2020 at 20:04):

if you want, but I got it fixed

view this post on Zulip Sean (Sep 04 2020 at 20:05):

I know why my test didn't match yours. I fed a region, so is_region flag was true, didn't get to that else clause.

view this post on Zulip starseeker (Sep 04 2020 at 20:05):

FWIW:
mged_comb_editor_error.gif

view this post on Zulip starseeker (Sep 04 2020 at 20:06):

Ah, got it.

view this post on Zulip Sean (Sep 04 2020 at 20:08):

commited

view this post on Zulip starseeker (Sep 04 2020 at 20:09):

Awesome, thanks! I'll roll another Windows build.

view this post on Zulip Sean (Sep 04 2020 at 20:09):

your mged dialogs are displaying wrong...

view this post on Zulip Sean (Sep 04 2020 at 20:09):

is that new?

view this post on Zulip starseeker (Sep 04 2020 at 20:10):

You mean popping under? Not sure

view this post on Zulip Sean (Sep 04 2020 at 20:10):

yeah, the comb editor and the Apply confirm dialog both failed to raise

view this post on Zulip Sean (Sep 04 2020 at 20:11):

they raise on mac

view this post on Zulip Sean (Sep 04 2020 at 20:11):

pretty sure there is/was an explicit raise call in their construction

view this post on Zulip Sean (Sep 04 2020 at 20:11):

worth checking back a few releases on linux...

view this post on Zulip starseeker (Sep 04 2020 at 20:12):

They pop up in 7.30.10 on Linux. Hang on, rebuilding trunk...

view this post on Zulip Sean (Sep 04 2020 at 20:12):

ooh, fun. maybe a 8.6 issue

view this post on Zulip starseeker (Sep 04 2020 at 20:12):

Yeah, works with trunk too. I think it had to do with the gif recorder I was using.

view this post on Zulip Sean (Sep 04 2020 at 20:13):

ahh, hm

view this post on Zulip starseeker (Sep 04 2020 at 20:13):

Once sec - let me try that again...

view this post on Zulip Sean (Sep 04 2020 at 20:13):

okay, that excuse works for me :)

view this post on Zulip Sean (Sep 04 2020 at 20:13):

it's probably forcibly holding focus and tk just says okay whatever

view this post on Zulip starseeker (Sep 04 2020 at 20:14):

Yeah, with that up I'm getting Gnome messages:
Toplevel
"Combination Editor (id_0)" is ready

view this post on Zulip starseeker (Sep 04 2020 at 20:14):

Those pop to the top, the window does not.

view this post on Zulip starseeker (Sep 04 2020 at 20:15):

Only happens when I have Peek running.

view this post on Zulip starseeker (Sep 04 2020 at 20:15):

Gnome desktop is kinda a hostile place to be an old school X11 Tk app...

view this post on Zulip starseeker (Sep 04 2020 at 20:23):

Tempted to move back to fluxbox in some ways, but on the other hand this environment is what new users are likely to use...


Last updated: Oct 09 2024 at 00:44 UTC