[Brlcad-tracker] [ brlcad-Bugs-1220146 ] ERROR: NULL functab pointer, file dir.c, line 250
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2006-03-23 03:07:11
|
Bugs item #1220146, was opened at 2005-06-14 02:34 Message generated for change (Comment added) made by johnranderson You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640802&aid=1220146&group_id=105292 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Geometry Editing Group: other bug / workaround >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Karel Kulhavy (clock3) Assigned to: John Anderson (johnranderson) Summary: ERROR: NULL functab pointer, file dir.c, line 250 Initial Comment: mged chimney.g B chimney and it will crash. mged --version doesn't work. The version is however not the newest. ---------------------------------------------------------------------- >Comment By: John Anderson (johnranderson) Date: 2006-03-22 22:07 Message: Logged In: YES user_id=1185553 This was caused by a bug in db_recurse() where it would try to free an rt_db_internal even when there was nothing to free. The fix was to check that there is actually something there before freeing. This eliminates the crashing, but the bad geometry will still not be drawn. ---------------------------------------------------------------------- Comment By: Lee Butler (lbutler) Date: 2006-01-11 18:25 Message: Logged In: YES user_id=1179270 Can you still reproduce this error? With correct geometry? ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2005-06-15 08:50 Message: Logged In: YES user_id=785737 First off, there is no --version option to mged (or any --long-options). Probably the easiest means to determine the version of mged is to run it in console-mode: mged -c For what it's worth, the version is also placed into the mged window title. In general, though, it's even easier to get the version number from rt instead of from mged. If you run just 'rt' with no options, it will output a usage statement that includes the version information of all the core libraries. As for the crash bug, it's related to invalid geometry. I'm unable to reproduce the crash itself, but mged is being presented with an arbn that is being reported as invalid. In chimney.g there is a scaling factor over an arbn that makes it invalid: mged> l chimney/bars.r/bar1.c chimney/bars.r/bar1.c: -- u bar1.s u head10a.s [-265,0,0] mged> e bar1.c bn_mat_ck(head10a.s): bad matrix, does not preserve axis perpendicularity. X.Y=0, Y.Z=0, X.Z=-288, s=1 MATRIX bn_mat_ck() bad matrix: 1.000 0.000 0.000 -265.000 0.000 1.000 0.000 0.000 -288.000 0.000 1.000 0.000 0.000 0.000 0.000 1.000 db_recurse(head10a.s): matrix does not preserve axis perpendicularity. MATRIX bad matrix: 1.000 0.000 0.000 -265.000 0.000 1.000 0.000 0.000 -288.000 0.000 1.000 0.000 0.000 0.000 0.000 1.000 It may or may not be related to the crash, but it's curious to see regardless and suspicious. It's not a fatal error so it should not abort, but it is invalid geometry and might be causing system-specific floating point effects that provoke the crash. I imagine if you e up just head10a.s, that it will work, and if you e up bar1.c that it will either crash or report the same error. Try fixing that scaling and see if it makes the problem go away. It will at least narrow the problem down so that we might figure out where the crash itself is being caused. ---------------------------------------------------------------------- Comment By: Karel Kulhavy (clock3) Date: 2005-06-15 06:37 Message: Logged In: YES user_id=1194787 It's 7.2.2 ---------------------------------------------------------------------- Comment By: Lee Butler (lbutler) Date: 2005-06-14 16:37 Message: Logged In: YES user_id=1179270 When mged starts up it should print a couple of lines indicating the version of the libraries it is using. Could you indicate the output it displays? One easy way to obtain this is with the following: % mged -c non_existent_file.g It should report somthing like: BRL-CAD Release 7.2.1 Geometry Editor (MGED) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640802&aid=1220146&group_id=105292 |