|
|
> i can get it to compile, but whenever i try to render an image, i get a seg
> fault. anyone have any ideas?
Do you really think such a minimal information will suffice
to know what can be the cause of your problem? You do even fail to
mention which version of POV-Ray you are using...
At which moment the segfault occurs? Do you have any console
output appearing, or does it crash as you as you start it? Does it
crash when you use display? You can also try recompiling the program
by configuring it so as to include debugging data useful for the GNU
debugger GDB.
Please try the following, from the root directory of your
povray source distro:
% make distclean
% ./configure --enable-debug [additional options]
% make
% gdb ./unix/povray
(gdb) run ./scenes/advanced/biscuit.pov -f +d
_some_error_messages_should_appear_here_
(gdb) backtrace
(gdb) quit
and report the full output messages.
Thanks,
- NC
Post a reply to this message
|
|
|
|
Nicolas Calimet <pov### [at] freefr> wrote:
> > i can get it to compile, but whenever i try to render an image, i get a seg
> > fault. anyone have any ideas?
>
> Do you really think such a minimal information will suffice
> to know what can be the cause of your problem? You do even fail to
> mention which version of POV-Ray you are using...
>
> At which moment the segfault occurs? Do you have any console
> output appearing, or does it crash as you as you start it? Does it
> crash when you use display? You can also try recompiling the program
> by configuring it so as to include debugging data useful for the GNU
> debugger GDB.
> Please try the following, from the root directory of your
> povray source distro:
>
> % make distclean
> % ./configure --enable-debug [additional options]
> % make
> % gdb ./unix/povray
> (gdb) run ./scenes/advanced/biscuit.pov -f +d
> _some_error_messages_should_appear_here_
> (gdb) backtrace
> (gdb) quit
>
> and report the full output messages.
>
> Thanks,
> - NC
i'm using the latest 3.6 source. it compiles fine. the seg fault occurs
after parsing right when rendering begins. i'm not really sure why that is.
i've tried this on openbsd on an old pentium computer, and povray compiles
and renders just fine. i've never debugged anything before. i'll give that
a try
Post a reply to this message
|
|
|
|
here's the gdb output with backtrace (i have no idea what all this means):
Tracing Options
Quality: 9
Bounding boxes.......On Bounding threshold: 3
Light Buffer.........On
Vista Buffer.........On Draw Vista Buffer....Off
Antialiasing.........Off
Clock value: 0.000 (Animation off)
0:00:02 Parsing 330K tokens
0:00:02 Creating bounding slabs
0:00:02 Creating vista buffer
0:00:02 Creating light buffers 333K tokens
Scene Statistics
Finite objects: 292
Infinite objects: 0
Light sources: 2
Total: 294
0:00:00 Displaying
0:00:00 Rendering line 1 of 240
Program received signal SIGSEGV, Segmentation fault.
0x184f5c4 in pov::Diffuse_One_Light (Light_Source=0x1a03c28,
Light_Index=0,
REye=0x7fffe0b0, Finish=0x1a05128, IPoint=0x7fffe360, Eye=0x1968b48,
Layer_Normal=0x7fffdf70, Layer_Pigment_Colour=0x7fffdfd0,
Colour=0x7fffe050, Attenuation=1, Object=0xbfc7f719) at
lighting.cpp:2365
2365 if (!(Test_Flag(Object, DOUBLE_ILLUMINATE_FLAG)))
(gdb) backtrace
#0 0x184f5c4 in pov::Diffuse_One_Light (Light_Source=0x1a03c28,
Light_Index=0, REye=0x7fffe0b0, Finish=0x1a05128, IPoint=0x7fffe360,
Eye=0x1968b48, Layer_Normal=0x7fffdf70,
Layer_Pigment_Colour=0x7fffdfd0,
Colour=0x7fffe050, Attenuation=1, Object=0xbfc7f719) at
lighting.cpp:2365
#1 0x1852648 in pov::compute_lighted_texture (ResCol=0x7fffe298,
Texture=0x1a05128, IPoint=0x7fffe2d8, Raw_Normal=0x7fffe2b8,
Ray=0x1968b48, Weight=1, Intersect=0x7fffe358) at lighting.cpp:2301
#2 0x1851a94 in pov::do_texture_map (Result_Colour=0x7fffe298,
Texture=0x19c0e28, IPoint=0x7fffe2d8, Raw_Normal=0x7fffe2b8,
Ray=0x1968b48, Weight=1, Ray_Intersection=0x7fffe358, Shadow_Flag=0)
at lighting.cpp:3606
#3 0x184c950 in pov::Determine_Apparent_Colour
(Ray_Intersection=0x7fffe358,
Colour=0x7fffe468, Ray=0x1968b48, Weight=1) at lighting.cpp:621
#4 0x182c65c in pov::Trace_Primary_Ray (Ray=0x1968b48,
Colour=0x7fffe468,
Weight=1, x=0) at vbuffer.cpp:327
#5 0x1815e70 in pov::trace_pixel (x=0, y=0, ColourClipped=0x19e9028,
ColourUnclipped=0x7fffe468) at render.cpp:2629
#6 0x1813d18 in pov::Start_Non_Adaptive_Tracing () at render.cpp:1375
#7 0x1810ccc in pov::FrameRender () at rendctrl.cpp:520
#8 0x181063c in pov::FrameLoop () at rendctrl.cpp:261
#9 0x180e2ac in povray_cooperate () at povray.cpp:566
#10 0x18073b0 in main (argc=4, argv=0x7fffebbc) at unix.cpp:3003
#11 0x18037f4 in _start ()
#12 0x41932b04 in _rtld_start () from /usr/libexec/ld.elf_so
#13 0x7c0802a6 in ?? ()
Post a reply to this message
|
|
|
|
> here's the gdb output with backtrace (i have no idea what all this means):
That means it's worth looking at what's going on here, since this
is the first time such problem is reported. The problem seems to be
within POV-Ray and not within your system or compiler:
> Program received signal SIGSEGV, Segmentation fault.
> 0x184f5c4 in pov::Diffuse_One_Light (Light_Source=0x1a03c28,
> Light_Index=0,
> REye=0x7fffe0b0, Finish=0x1a05128, IPoint=0x7fffe360, Eye=0x1968b48,
> Layer_Normal=0x7fffdf70, Layer_Pigment_Colour=0x7fffdfd0,
> Colour=0x7fffe050, Attenuation=1, Object=0xbfc7f719) at
> lighting.cpp:2365
> 2365 if (!(Test_Flag(Object, DOUBLE_ILLUMINATE_FLAG)))
We'll investigate this.
Thanks for reporting,
- NC
Post a reply to this message
|
|