POV-Ray : Newsgroups : povray.unofficial.patches : %s crash Server Time
2 Sep 2024 12:14:38 EDT (-0400)
  %s crash (Message 1 to 4 of 4)  
From: Sigmund Kyrre Aas
Subject: %s crash
Date: 17 Feb 2000 17:38:58
Message: <38AC77EC.527D9200@stud.ntnu.no>
%s=5; 

causes


MEGAPOV caused an invalid page fault in
module KERNEL32.DLL at 0137:bff9a5d4.
Registers:
EAX=c001745c CS=0137 EIP=bff9a5d4 EFLGS=00010202
EBX=02a2ffb8 SS=013f ESP=0292feb0 EBP=0293014c
ECX=00000000 DS=013f ESI=00000000 FS=4adf
EDX=bff7678c ES=013f EDI=bffb8e70 GS=0000
Bytes at CS:EIP:
53 8b 15 7c 02 fc bf 56 89 4d e4 57 89 4d dc 89 


#local #declare and $ doesn't cause a crash.

Btw what's s reserved for?

sig.


Post a reply to this message

From: Nathan Kopp
Subject: Re: %s crash
Date: 17 Feb 2000 19:25:40
Message: <38ac9184@news.povray.org>
Sigmund Kyrre Aas <as### [at] studntnuno> wrote...
> %s=5;
>
> causes
>
> MEGAPOV caused an invalid page fault...
>
> #local #declare and $ doesn't cause a crash.
>
> Btw what's s reserved for?
>

s is reserved for isosurface.

Actually, any error line that has a % in it has the potential to cause a
crash in POV (even in the official versions).  This wasn't usually a problem
because % wasn't used very often in POV code.

The problem is because POV treats the error line as a C format string (think
of it as a printf).

This will be fixed in the next versions of MegaPov and POV-Ray.

-Nathan


Post a reply to this message

From: Pookles
Subject: Re: %s crash
Date: 14 Dec 2002 13:25:03
Message: <web.3dfb76e3d460ca42bf7e36a0@news.povray.org>
Is there a way to use the % symbol to get the mod of a number?  Or is there
another way to get a number mod another number in POVRAY?

Sorry im new; this post probably should have gone in another topic.


Post a reply to this message

From: Warp
Subject: Re: %s crash
Date: 14 Dec 2002 13:54:18
Message: <3dfb7e5a@news.povray.org>
Pookles <rtc### [at] hotmailcom> wrote:
> Is there a way to use the % symbol to get the mod of a number?  Or is there
> another way to get a number mod another number in POVRAY?

  Use the mod() function.

  And could you please either be more specific about the issue or use the
correct terminology? That is: What do you mean by "crash"? An error message
is certainly not a "crash"; it's an error message. If, however, a true
crash happens, then you should promptly report it.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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