[brlcad-tracker] [ brlcad-Bugs-2822415 ] rtweight crashes on Windows
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2009-07-17 11:39:01
|
Bugs item #2822415, was opened at 2009-07-16 11:44 Message generated for change (Comment added) made by brlcad You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640802&aid=2822415&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: Analysis Group: crash or data loss Status: Open Resolution: None Priority: 8 Private: No Submitted By: Wim Bokkers (bokkers) Assigned to: Nobody/Anonymous (nobody) Summary: rtweight crashes on Windows Initial Comment: When running rtweight on a geometry, it crashes with the error: rtweight.exe has encountered a problem and needs to close. There is a .density file located in the home directory AND in the current directory AND in the binaries directory (just to be sure). ---------------------------------------------------------------------- >Comment By: Sean Morrison (brlcad) Date: 2009-07-17 11:38 Message: That was useful. It appears to be halting during view_init() which is basically where the .density file is parsed. At least that's where the debugging stops. Hopefully it's not buffered output or that'll mean it could be during tracing as well. In searching for a .density file, rtweight is going to search first in the current directory, then in your home directory, using the first one it finds. It locates those places by looking at the PWD and HOME environment variables respectively (can run "echo $PWD" and "echo $HOME" so see their values). Try removing the .density from both places and make sure you get an "Unable to load density file" error. If you can get that error, then you can try creating a one-line .density file in your current directory. Format is: INT[space]FLOAT[space]STRING So something as simple as: 0 1.0 WATER should work depending on the newline situation. Try both unix line endings and windows line endings. ---------------------------------------------------------------------- Comment By: Wim Bokkers (bokkers) Date: 2009-07-17 07:11 Message: I tried with the .density file you supplied (I could not save the file from IE, since is was displayed in the browser: I copied te text into notepad and then saved to .density) See attached files for used input and debugging output. ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2009-07-16 14:03 Message: Try with "-! ffffffff" on the command-line. It should spew lots of debugging output. If you provide that as an attachment, hopefully it'll provide some insight at least into where it's halting. There is an example .density file here that is known to work: http://brlcad.org/tmp/.density ---------------------------------------------------------------------- Comment By: Wim Bokkers (bokkers) Date: 2009-07-16 13:35 Message: What is the exact format of the .density file? ---------------------------------------------------------------------- Comment By: Wim Bokkers (bokkers) Date: 2009-07-16 13:33 Message: I tried al sort of line endings. rtweight keeps crashing. But it does display the db title and does a succesful dirbuild (it prints som information about the elapsed time) The -x1 option does not give me more information. If there is no .density file, the same error appears. I tried to get a call stack, but the binary was not build with debug information. ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2009-07-16 13:14 Message: This is just a guess, but it could be a problem with line endings in the .density file. Can you make sure your .density file(s) have windows line endings (you can create a simple on by hand in Notepad.exe for example)? If they are, then try the opposite -- make them have unix line endings and see if that changes anything. Without a stack trace or more debugging information, it's hard to say what's going on but line ending management is something that has come up before with other file-processing tools. Another thing you can do is to add "-X1" to the rtweight options and see if there's any more diagnostically useful information shown. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640802&aid=2822415&group_id=105292 |