Open arpit15 opened 3 years ago
I used the following command to test the renderer.
mitsuba_AD -L trace scenes/cube_sunsky.xml -Dmeshmodel=cube -DsigmaT=100 -Dalbedo=0.8 -Dg=0.2 -DnumSamples=4096 -Dx=0.433 -Dy=0.866 -Dz=0.25 -o cube_e30_d100_a0.8_g0.2_q4096.exr
I got following segfault. Can you kindly let me know if I am missing something in setup.
Reading symbols from mitsuba_AD... (gdb) r Starting program: /home/arpit/projects/inverseTransportNetworks/renderer/dist_debug/mitsuba_AD -L trace scenes/cube_sunsky.xml -Dmeshmodel=cube -DsigmaT=100 -Dalbedo=0.8 -Dg=0.2 -DnumSamples=4096 -Dx=0.433 -Dy=0.866 -Dz=0.25 -o cube_e30_d100_a0.8_g0.2_q4096.exr [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff37d5700 (LWP 581482)] [New Thread 0x7ffff2fd4700 (LWP 581483)] [New Thread 0x7ffff27d3700 (LWP 581484)] [New Thread 0x7ffff1fd2700 (LWP 581485)] [New Thread 0x7ffff17d1700 (LWP 581486)] [New Thread 0x7ffff0fd0700 (LWP 581487)] [New Thread 0x7ffff07cf700 (LWP 581488)] 2021-06-07 20:58:49 INFO main [mitsuba.cpp:275] Mitsuba version 0.5.0 (Linux, 64 bit), Copyright (c) 2014 Wenzel Jakob 2021-06-07 20:58:49 DEBUG main [Thread] Spawning thread "wrk0" [New Thread 0x7fffeffce700 (LWP 581489)] 2021-06-07 20:58:49 DEBUG main [Thread] Spawning thread "wrk1" [New Thread 0x7fffef7cd700 (LWP 581490)] 2021-06-07 20:58:49 DEBUG main [Thread] Spawning thread "wrk2" [New Thread 0x7fffeefcc700 (LWP 581491)] 2021-06-07 20:58:49 DEBUG main [Thread] Spawning thread "wrk3" [New Thread 0x7fffee7cb700 (LWP 581492)] 2021-06-07 20:58:49 INFO main [mitsuba.cpp:379] Parsing scene description from "scenes/cube_sunsky.xml" .. 2021-06-07 20:58:49 INFO main [PluginManager] Loading plugin "plugins/volpath.so" .. 2021-06-07 20:58:49 INFO main [PluginManager] Loading plugin "plugins/sunsky.so" .. 2021-06-07 20:58:49 WARN main [properties.cpp:77] Property "sunDirection" was specified multiple times! 2021-06-07 20:58:49 INFO main [PluginManager] Loading plugin "plugins/sky.so" .. 2021-06-07 20:58:49 DEBUG main [SunSkyEmitter] Rasterizing sun & skylight emitter to an 512x256 environment map .. 2021-06-07 20:58:50 DEBUG main [SunSkyEmitter] Done (took 868 ms) 2021-06-07 20:58:50 INFO main [PluginManager] Loading plugin "plugins/envmap.so" .. 2021-06-07 20:58:51 INFO main [PluginManager] Loading plugin "plugins/lanczos.so" .. 2021-06-07 20:58:51 DEBUG main [MIPMap] Created 341.4 KiB of MIP maps in 10 ms 2021-06-07 20:58:51 INFO main [EnvironmentMap] Precomputing data structures for environment map sampling (515.0 KiB) 2021-06-07 20:58:51 INFO main [EnvironmentMap] Done (took 3 ms) 2021-06-07 20:58:51 INFO main [PluginManager] Loading plugin "plugins/hg.so" .. Thread 1 "mitsuba_AD" received signal SIGSEGV, Segmentation fault. 0x00007fffede2012a in std::vector<stan::math::var, std::allocator<stan::math::var> >::size (this=0x0) at /usr/include/c++/10/bits/stl_vector.h:919 919 { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } (gdb) bt #1 0x00007fffede20743 in std::vector<stan::math::var, std::allocator<stan::math::var> >::operator= (this=0x5555556860d0, __x=<error reading variable: Cannot access memory at address 0x8>) at /usr/include/c++/10/bits/vector.tcc:223 #2 0x00007fffede1e381 in FloatAD_shared::operator= (this=0x5555556860d0) at include/mitsuba/core/FloatADshared.h:11 #3 0x00007fffede1e95c in mitsuba::TSpectrum_shared<FloatAD_shared, 1>::operator= (this=0x5555556860d0) at include/mitsuba/core/spectrumshared.h:39 #4 0x00007fffede1e99d in mitsuba::Spectrum_shared::operator= (this=0x5555556860d0) at include/mitsuba/core/spectrumshared.h:375 #5 0x00007fffede1ea8e in mitsuba::HGPhaseFunction::HGPhaseFunction (this=0x555555685f00, props=...) at src/phase/hg.cpp:61 #6 0x00007fffede1ba01 in mitsuba::CreateInstance (props=...) at src/phase/hg.cpp:193 #7 0x00007ffff75df6f3 in mitsuba::Plugin::createInstance (this=0x5555558301f0, props=...) at src/libcore/plugin.cpp:132 #8 0x00007ffff75dfb64 in mitsuba::PluginManager::createObject (this=0x555555682610, classType=0x5555556825a0, props=...) at src/libcore/plugin.cpp:189 #9 0x00007ffff721626f in mitsuba::SceneHandler::endElement (this=0x5555557251e0, xmlName=0x555555784c10 u"phase") at src/librender/scenehandler.cpp:879 #10 0x00007ffff7e1c77d in xercesc_3_2::SAXParser::endElement(xercesc_3_2::XMLElementDecl const&, unsigned int, bool, char16_t const*) () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #11 0x00007ffff7dc4599 in xercesc_3_2::IGXMLScanner::scanEndTag(bool&) () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #12 0x00007ffff7dc8bb9 in xercesc_3_2::IGXMLScanner::scanContent() () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #13 0x00007ffff7dc8d40 in xercesc_3_2::IGXMLScanner::scanDocument(xercesc_3_2::InputSource const&) () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #14 0x00007ffff7df27a5 in xercesc_3_2::XMLScanner::scanDocument(char16_t const*) () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #15 0x00007ffff7df2b22 in xercesc_3_2::XMLScanner::scanDocument(char const*) () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #16 0x00007ffff7e1d5a2 in xercesc_3_2::SAXParser::parse(char const*) () at /usr/lib/x86_64-linux-gnu/libxerces-c-3.2.so #17 0x0000555555575486 in mitsuba_app (argc=14, argv=0x7fffffffd8e8) at src/mitsuba/mitsuba.cpp:380 #18 0x00005555555765d5 in mts_main (argc=14, argv=0x7fffffffd8e8) at src/mitsuba/mitsuba.cpp:449 #19 0x0000555555576640 in main (argc=14, argv=0x7fffffffd8e8) at src/mitsuba/mitsuba.cpp:474
same question
I used the following command to test the renderer.
I got following segfault. Can you kindly let me know if I am missing something in setup.