POV-Ray : Newsgroups : povray.beta-test : How to get fix for FS#294? Server Time
22 Dec 2024 05:19:10 EST (-0500)
  How to get fix for FS#294? (Message 1 to 7 of 7)  
From: Alex Stewart
Subject: How to get fix for FS#294?
Date: 12 Jul 2013 14:24:35
Message: <51e049e3$1@news.povray.org>
Hi all,

I'm currently using 3.7.0 RC7, and have run across some problems which 
appear to be manifestations of http://bugs.povray.org/task/294 ..

The bug entry says that a fix has been developed (about a month ago) and 
applied as "change 5907".  Is there a repository somewhere (or nightlies 
or something) I could fetch from to pick up this fix?  (I've looked around 
a bit, but can't seem to find any source repository for POV-Ray out 
there.. am I missing something obvious?)

Also, it's a little unclear:  The bug is still listed as "Requires 
testing" status (I'd be happy to help test, if needed).. will this fix 
make it into the next release (whenever that might be)?  This issue is 
really quite annoying and difficult to work around..

--alex


Post a reply to this message

From: Le Forgeron
Subject: Re: How to get fix for FS#294?
Date: 12 Jul 2013 16:14:44
Message: <51e063b4$1@news.povray.org>
Le 12/07/2013 20:24, Alex Stewart nous fit lire :
> Hi all,
> 
> I'm currently using 3.7.0 RC7, and have run across some problems which 
> appear to be manifestations of http://bugs.povray.org/task/294 ..
> 
> The bug entry says that a fix has been developed (about a month ago) and 
> applied as "change 5907".  Is there a repository somewhere (or nightlies 
> or something) I could fetch from to pick up this fix?  (I've looked around 
> a bit, but can't seem to find any source repository for POV-Ray out 
> there.. am I missing something obvious?)
> 

You are not missing anything. Hereafter change 5907 for your own test
(by hand)

Change in source/backend/frame.h
================================
1. circa line 1080, put in comment:
> 	bool Cache_Valid;
> 	int Cache_Type;
> 	DBL Cache_Point;
> 	EXPRESS Cache_Data;

Changes in source/backend/math/splines.cpp
==========================================
1. circa line 542 inside Create_Spline, put in comment:
> 	New->Cache_Valid = false;

2. circa line 598 inside Copy_Spline, put in comment:
> 	New->Cache_Valid = false; 

3. circa line 705 inside Insert_Spline_Entry, put in comment:
> 	sp->Cache_Valid = false;

4. circa line 802, put in comment (about 16 lines):
> 	// check if the value is in the cache
> 	if((sp->Cache_Point == p) && (sp->Cache_Type == sp->Type))
> 	{
> 		if(sp->Cache_Valid == true) // doing this here is more efficient as it is rarely
false [trf]
> 		{
> 			Assign_Express(v, sp->Cache_Data);
> 			return sp->Cache_Data[0];
> 		}
> 	}
> 
> 	// init some cache data
> 	sp->Cache_Valid = false;
> 	sp->Cache_Type = sp->Type;
> 	sp->Cache_Point = p;

5. circa line 902, put in comment (about 2 lines):
> 	// put data in cache
> 	Assign_Express(sp->Cache_Data, v);
> 	sp->Cache_Valid = true;




> Also, it's a little unclear:  The bug is still listed as "Requires 
> testing" status (I'd be happy to help test, if needed).. will this fix 
> make it into the next release (whenever that might be)?  This issue is 
> really quite annoying and difficult to work around..

It requires testing because I was alone to test it, and my hardware is
not universal, so confirmation by other would be welcome. From strict
quality point of view, the patcher should not close directly the issue.


Post a reply to this message

From: Alex Stewart
Subject: Re: How to get fix for FS#294? - "povray_5907.patch" yEnc
Date: 12 Jul 2013 20:18:10
Message: <51e09cc2@news.povray.org>


Post a reply to this message


Attachments:
Download '=ybegin part=1 line=128 size=2069 name=povray_5907.patch.txt' (1 KB)

From: Alex Stewart
Subject: Re: How to get fix for FS#294?
Date: 12 Jul 2013 20:18:10
Message: <pan$7df3c$71bef2f6$199b5f52$25a20d75$1@gmail.com>
On Fri, 12 Jul 2013 22:14:44 +0200, Le_Forgeron wrote:
> You are not missing anything. Hereafter change 5907 for your own test
> (by hand)
[...]

Thanks!  The specified changes fix my problem completely.  Everything's 
rendering properly now!

Attached is the change as a patch against RC7 in case anybody else wants 
to try it (can be applied using 'patch -p1 < povray_5907.patch' prior to 
configure/make)..


Post a reply to this message

From: William F Pokorny
Subject: Re: How to get fix for FS#294?
Date: 13 Jul 2013 08:38:16
Message: <51e14a38$1@news.povray.org>
On 07/12/2013 04:14 PM, Le_Forgeron wrote:
> Le 12/07/2013 20:24, Alex Stewart nous fit lire :
...
>
> It requires testing because I was alone to test it, and my hardware is
> not universal, so confirmation by other would be welcome. From strict
> quality point of view, the patcher should not close directly the issue.
>
For what it is worth testing wise, I've been running with patched code 
since getting your emails from the bug tracking system. Though I was 
lazy in that all I did code wise was comment any setting of "Cache_Valid 
= true;". In roughly a month I have not seen any issue, but my only use 
of splines in that time has been in isosurfaces.

Bill P.


Post a reply to this message

From: Alain
Subject: Re: How to get fix for FS#294?
Date: 13 Jul 2013 15:49:30
Message: <51e1af4a$1@news.povray.org>
Le 13-07-12 20:18, Alex Stewart a écrit :
> On Fri, 12 Jul 2013 22:14:44 +0200, Le_Forgeron wrote:
>> You are not missing anything. Hereafter change 5907 for your own test
>> (by hand)
> [...]
>
> Thanks!  The specified changes fix my problem completely.  Everything's
> rendering properly now!
>
> Attached is the change as a patch against RC7 in case anybody else wants
> to try it (can be applied using 'patch -p1 < povray_5907.patch' prior to
> configure/make)..
>
Sory, but this forum don't support attachments. Use the binaries variety 
for that purpose.


Post a reply to this message

From: clipka
Subject: Re: How to get fix for FS#294?
Date: 15 Jul 2013 19:06:58
Message: <51e48092@news.povray.org>
Am 12.07.2013 20:24, schrieb Alex Stewart:
> Hi all,
>
> I'm currently using 3.7.0 RC7, and have run across some problems which
> appear to be manifestations of http://bugs.povray.org/task/294 ..
>
> The bug entry says that a fix has been developed (about a month ago) and
> applied as "change 5907".  Is there a repository somewhere (or nightlies
> or something) I could fetch from to pick up this fix?  (I've looked around
> a bit, but can't seem to find any source repository for POV-Ray out
> there.. am I missing something obvious?)

POV-Ray is not (yet) part of the world of free(TM) software (as in Free 
Software Foundation), and accordingly doesn't have the infrastructure 
commonly associated with free(TM) software, such as a public repository. 
There does exist a Perforce repository, but it's accessible for dev team 
members only.

(There is a strong commitment to change both though: POV-Ray is on its 
way towards GPL, and a publicly available Git repository is also on the 
roadmap.)


> Also, it's a little unclear:  The bug is still listed as "Requires
> testing" status (I'd be happy to help test, if needed).. will this fix
> make it into the next release (whenever that might be)?

Most likely so.

As for the "requires testing" status, we commonly set bugtracker entries 
to that once the changes have been submitted to the codebase, and leave 
them at that state until the change has been released and user feedback 
been received, or a reasonable time has elapsed after release without 
any feedback. Well, maybe we should change that a bit.


Post a reply to this message

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