POV-Ray : Newsgroups : povray.beta-test : [linux RC6] simple isosurface scene causes seg fault Server Time
29 Jul 2024 10:30:25 EDT (-0400)
  [linux RC6] simple isosurface scene causes seg fault (Message 1 to 6 of 6)  
From: Roz
Subject: [linux RC6] simple isosurface scene causes seg fault
Date: 24 Jun 2002 13:47:52
Message: <3D175BAE.1060302@netscape.net>
POV-Ray 3.5 RC6, RedHat 7.1, AMD Athlon 1.2, 256 Meg

First of all, thanks for continuing to provide a Linux version of the 
POV betas :)  I'm having a small problem with an isosurface. I have a 
simple isosurface scene (taken from a larger file) that runs fine in the 
Windows version of POV but does a Segmentation Fault (core dumped) in 
the Linux version (both 3.5 RC6). Here's the scene:

[start of sample scene]----------------------------------

camera { location <0,2,-3> look_at <0,0,0> }

light_source { <50,100,-100> rgb 1 }

isosurface {
   function { abs(x)+abs(y)+abs(z) }
   contained_by { box { <-3,0,-3>, <3,0.5,3>} }
   threshold 1.3
   max_gradient 2
   pigment { rgb <1,0,0> }
}

[end of sample scene]----------------------------------


[start of gdb snippet]---------------------------------

Persistence of Vision(tm) Ray Tracer Version 3.5.beta.RC6 Unix (.Linux.gcc)

Parsing...

Creating bounding slabs.
Scene contains 1 frame level objects; 0 infinite.

Displaying...
Using 24 bit TrueColor visual...
Rendering...
Program received signal SIGSEGV, Segmentation fault.
0x08067eff in POVFPU_RunDefault (fn=0) at fnpovfpu.cpp:1349
1349    fnpovfpu.cpp: No such file or directory.
         in fnpovfpu.cpp

[end of gdb snippet]---------------------------------


Post a reply to this message

From: Felix Wiemann
Subject: Re: [linux RC6] simple isosurface scene causes seg fault
Date: 25 Jun 2002 07:58:09
Message: <3d185ad0@news.povray.org>
Roz wrote:

> [segmentation fault:]
> 
>
> camera { location <0,2,-3> look_at <0,0,0> }
> 
> light_source { <50,100,-100> rgb 1 }
> 
> isosurface {
>    function { abs(x)+abs(y)+abs(z) }
>    contained_by { box { <-3,0,-3>, <3,0.5,3>} }
>    threshold 1.3
>    max_gradient 2
>    pigment { rgb <1,0,0> }
> }

Confirmed.
RC6, Linux 2.4.10, SuSE 7.3, 128MB, P3 600
Output:

| [...]
| Parsing...
| 
| Creating bounding slabs.
| Scene contains 1 frame level objects; 0 infinite.
| 
| Displaying...
| Using 24 bit TrueColor visual...
|   -:--:-- Rendering line   35 of  240. Speicherzugriffsfehler
|                                         (segmentation fault)

-- 
Felix Wiemann


Post a reply to this message

From:
Subject: Re: [linux RC6] simple isosurface scene causes seg fault
Date: 25 Jun 2002 08:08:29
Message: <q2nghuca09e5if5ct2mjv8j741m1eseq6c@4ax.com>
On Tue, 25 Jun 2002 13:59:15 +0200, Felix Wiemann <Fel### [at] gmxnet>
wrote:
> > camera { location <0,2,-3> look_at <0,0,0> }
> > light_source { <50,100,-100> rgb 1 }
> > isosurface {
>
> Confirmed.

I can't confirm it with POV 3.5 RC6 icl on WinNT Sp 6 PII 233 with 128 MB
however I have a proposition to check this scene with aditional line at
begining of script:
#include "functions.inc"
IIRC there were some reports previously that it helps.

ABX


Post a reply to this message

From: Felix Wiemann
Subject: Re: [linux RC6] simple isosurface scene causes seg fault
Date: 25 Jun 2002 10:06:23
Message: <3d1878de@news.povray.org>


> I can't confirm it with POV 3.5 RC6 icl on WinNT Sp 6 PII 233 with 128 MB
> however I have a proposition to check this scene with aditional line at
> begining of script:
> #include "functions.inc"
> IIRC there were some reports previously that it helps.

Yes, it works fine with #include "functions.inc".

It seems to be necessary to use any internal function.
E.g. this renders correctly, too:


#declare F = function { internal(0) }

camera { location <0,2,-3> look_at <0,0,0> }

light_source { <50,100,-100> rgb 1 }

isosurface {
   function { abs(x)+abs(y)+abs(z) }
   contained_by { box { <-3,0,-3>, <3,0.5,3>} }
   threshold 1.3
   max_gradient 2
   pigment { rgb <1,0,0> }
}


-- 
Felix Wiemann


Post a reply to this message

From: Roz
Subject: Re: [linux RC6] simple isosurface scene causes seg fault
Date: 25 Jun 2002 14:05:03
Message: <3D18B139.7050103@netscape.net>


> On Tue, 25 Jun 2002 13:59:15 +0200, Felix Wiemann <Fel### [at] gmxnet>
> wrote:
> 
>>>camera { location <0,2,-3> look_at <0,0,0> }
>>>light_source { <50,100,-100> rgb 1 }
>>>isosurface {
>>>
>>Confirmed.
>>
> 
> I can't confirm it with POV 3.5 RC6 icl on WinNT Sp 6 PII 233 with 128 MB
> however I have a proposition to check this scene with aditional line at
> begining of script:
> #include "functions.inc"

That fixed it for me too, thanks :)


Post a reply to this message

From: Felix Wiemann
Subject: internal (was: [linux RC6] simple isosurface scene causes seg fault)
Date: 25 Jun 2002 14:25:18
Message: <3d18b58e@news.povray.org>
Felix Wiemann wrote:

> Yes, it works fine with #include "functions.inc".
> 
> It seems to be necessary to use any internal function.

Btw, this works:

// BEGIN
camera { location <0,2,-3> look_at <0,0,0> }

light_source { <50,100,-100> rgb 1 }

isosurface {
   #declare F = function { internal(0) }
   function { abs(x)+abs(y)+abs(z) }
   contained_by { box { <-3,0,-3>, <3,0.5,3>} }
   threshold 1.3
   max_gradient 2
   pigment { rgb <1,0,0> }
}
// END

But this doesn't:

// BEGIN
camera { location <0,2,-3> look_at <0,0,0> }

light_source { <50,100,-100> rgb 1 }

isosurface {
   function { abs(x)+abs(y)+abs(z) }
   #declare F = function { internal(0) }
   contained_by { box { <-3,0,-3>, <3,0.5,3>} }
   threshold 1.3
   max_gradient 2
   pigment { rgb <1,0,0> }
}
// END

The internal function has to be declared before the function keyword.
-- 
Felix Wiemann


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.