POV-Ray : Newsgroups : povray.beta-test : bug : declared camera with normal statement crashes Server Time
30 Jul 2024 02:21:07 EDT (-0400)
  bug : declared camera with normal statement crashes (Message 1 to 4 of 4)  
From: Fabien Mosen
Subject: bug : declared camera with normal statement crashes
Date: 13 Jan 2002 10:07:37
Message: <3C41A226.7030703@skynet.be>
#include "colors.inc"

#declare Cam1=
camera {location <10,10,10> look_at <0,0,0>
  normal {bumps .1 scale .1}
}

camera {Cam1}

sphere {<0,0,0>,3 pigment {Red}}

light_source {<20,20,20> White}

//----------------------------------

This crashes P3.5b9, under WinME, AMD XP1500+, before rendering.

If the camera is used directly, without being declared,
it works as expected.

This bug was already in 3.1 and already reported once.

Fabien.


Post a reply to this message

From: Anders K 
Subject: Re: declared camera with normal statement crashes
Date: 13 Jan 2002 10:30:44
Message: <3c41a824$1@news.povray.org>
I can confirm this. POV-Ray 3.5 beta 9, Win98, Athlon 700, 256 MB.

PVENGINE caused an invalid page fault in
module PVENGINE.EXE at 0167:00518a84.
Registers:
EAX=00000021 CS=0167 EIP=00518a84 EFLGS=00010206
EBX=02a3fbd8 SS=016f ESP=02a3fb38 EBP=00000000
ECX=00cf07c8 DS=016f ESI=005dfb18 FS=11ff
EDX=005dfb18 ES=016f EDI=00000041 GS=0000
Bytes at CS:EIP:
0f b7 07 85 c0 74 11 83 f8 05 75 0c 8d 4f 08 8b
Stack dump:
02a3fb54 bff7b77b bff741f7 bffc9490 02a3fbf0 005dfb18 00cf08f8 005185ee
bff7b828 818c8b6c bff741f7 00000000 00000000 0060769a 0062d760 02a3fb98

Anders

--
light_source{6#local D#macro B(E)#macro A(D)#declare#declare C=mod(E
D);E=(E-C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(C<3)
}cylinder{0(C=<1 2>).2translate<D+C*A(2)A(4)#else}intersection{torus
{1 .2}box{-2y}rotate<1 0C>*90translate<D+1A(2)*2+1#end-2 13>pigment{
rgb x}finish{specular 1}#end#end#end=-8;1B(445000298)B(519053970)B(
483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

From: Mike Williams
Subject: Re: bug : declared camera with normal statement crashes
Date: 17 Jan 2002 02:25:08
Message: <4v2pkEAVFkR8Ewk$@econym.demon.co.uk>
Wasn't it Fabien Mosen who wrote:
>#include "colors.inc"
>
>#declare Cam1=
>camera {location <10,10,10> look_at <0,0,0>
>  normal {bumps .1 scale .1}
>}
>
>camera {Cam1}
>
>sphere {<0,0,0>,3 pigment {Red}}
>
>light_source {<20,20,20> White}
>
>//----------------------------------
>
>This crashes P3.5b9, under WinME, AMD XP1500+, before rendering.
>
>If the camera is used directly, without being declared,
>it works as expected.
>
>This bug was already in 3.1 and already reported once.
>
>Fabien.
>

Under b10 I get the cryptic error message "Problem in Evaluate_Tpat."
instead of a crash.

I guess that's still a bug because it would be expected to behave the
same as if the camera was not #declared.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: bug : declared camera with normal statement crashes
Date: 17 Jan 2002 07:07:36
Message: <3c46be88@news.povray.org>
In article <4v2pkEAVFkR8Ewk$@econym.demon.co.uk> , Mike Williams 
<mik### [at] nospamplease>  wrote:

> Under b10 I get the cryptic error message "Problem in Evaluate_Tpat."
> instead of a crash.

This suggests the pointer/pattern to/of the normal pattern doesn't get
copied and/or has been released after parsing was done/when copying.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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