From fabrice_macagno at yahoo.fr Sun Mar 25 19:01:16 2007 From: fabrice_macagno at yahoo.fr (fabrice) Date: Mon, 26 Mar 2007 01:01:16 +0200 Subject: [Pbrt-discuss] pbrt build on visual 2005 crashes In-Reply-To: References: Message-ID: <4606FF3C.1020609@yahoo.fr> Hello, I'm not sure if it's the right place to talk about that. If not, I apologize. I've build pbrt with microsoft visual 2005 (with service pack 1). And pbrt crashes when rendering caustic-proj.pbrt (I've got the same error with caustic-simple.pbrt), during the photon shooting process: * in debug mode I've got an "vector subscript out of range" * in release mode I've got an "an unhandled win32 exception occured in pbrt.exe [4864]" The error occurs in kdtree.h, in recursiveBuild method, when invoking the standard c++ method: nth_element. I'm on windows xp pro 32, service pack 2. I guess the bug already existed but was not catched with visual 2003. The scene render fine with the binary renderer (build on msvc 2003) included with the book. I've discovered pbrt recently, so I can't help fix it for now. Cheers. PS: great work and great book! ___________________________________________________________________________ Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son interface r?volutionnaire. http://fr.mail.yahoo.com