POV-Ray : Newsgroups : povray.bugreports : "Unknown error code" when using 12800x9600 as output with Rev 3.7 Server Time
22 Dec 2024 06:16:59 EST (-0500)
  "Unknown error code" when using 12800x9600 as output with Rev 3.7 (Message 1 to 9 of 9)  
From: Christian Baun
Subject: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 6 Apr 2015 13:55:01
Message: <web.5522c78b239ae475df6dfc390@news.povray.org>
Hi all.

When I try to use 12800x9600 as output resolution, I get this error message:

$ /opt/povray/bin/povray_3.7
/opt/povray/share/povray-3.7/scenes/objects/blob.pov +FN +W12800 +H9600 +O/tmp
Unknown error code

with 800x600, 1600x1200, 3200x2400 and 6400x4800 it works without any problems.

Is this a bug or have I done something wrong?

Best Regards and thanks for any help.

    Christian


Post a reply to this message

From: Le Forgeron
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 6 Apr 2015 14:05:24
Message: <5522cae4$1@news.povray.org>
Le 06/04/2015 19:51, Christian Baun a écrit :
> Hi all.
> 
> When I try to use 12800x9600 as output resolution, I get this error message:
> 
> $ /opt/povray/bin/povray_3.7
> /opt/povray/share/povray-3.7/scenes/objects/blob.pov +FN +W12800 +H9600 +O/tmp
> Unknown error code
> 
> with 800x600, 1600x1200, 3200x2400 and 6400x4800 it works without any problems.
> 
> Is this a bug or have I done something wrong?


Let me guess. 32 bits operating system ?

The temporary buffer for 12800 x 9600 output is
sizeof(double)*5*dimensions (*) : that's 124F80000 bytes in hex, more
than can be represented on 32 bits.


> 
> Best Regards and thanks for any help.
> 
>     Christian
> 

*: actually, it's a few more bytes, but that mainly irrelevant.


Post a reply to this message

From: Christian Baun
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 18 Apr 2015 17:25:01
Message: <web.5532ca8140a53ee328e771800@news.povray.org>
Thanks a lot for the response.

The system is a 32 bit system.

Best Regards
     Christian


Post a reply to this message

From: Christian Baun
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 21 Apr 2015 17:30:01
Message: <web.5536c12240a53ee3a0ae631b0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> The temporary buffer for 12800 x 9600 output is
> sizeof(double)*5*dimensions (*) : that's 124F80000 bytes in hex, more
> than can be represented on 32 bits.

Hello,

I have one more question.
How can the value 5 in the formular be explained?

3 is quite easy to explain because of RGB. But why 5 ?
Is it because of an alpha channel?

Best Regards
   Christian


Post a reply to this message

From: Le Forgeron
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 22 Apr 2015 01:59:05
Message: <553738a9$1@news.povray.org>
Le 21/04/2015 23:29, Christian Baun a écrit :
> Le_Forgeron <jgr### [at] freefr> wrote:
> 
>> The temporary buffer for 12800 x 9600 output is
>> sizeof(double)*5*dimensions (*) : that's 124F80000 bytes in hex, more
>> than can be represented on 32 bits.
> 
> Hello,
> 
> I have one more question.
> How can the value 5 in the formular be explained?
> 

Colour inside povray is made of 5 channels: red, green, blue, transmit
and filter (for the relative order of the last two, I'm not sure which
one is first).

> 3 is quite easy to explain because of RGB. But why 5 ?
> Is it because of an alpha channel?
> 

Sort of.

> Best Regards
>    Christian
> 
> 
> 


-- 
Just because nobody complains does not mean all parachutes are perfect.


Post a reply to this message

From: clipka
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 22 Apr 2015 04:46:26
Message: <55375fe2$1@news.povray.org>
Am 21.04.2015 um 23:29 schrieb Christian Baun:
> Le_Forgeron <jgr### [at] freefr> wrote:
>
>> The temporary buffer for 12800 x 9600 output is
>> sizeof(double)*5*dimensions (*) : that's 124F80000 bytes in hex, more
>> than can be represented on 32 bits.
>
> Hello,
>
> I have one more question.
> How can the value 5 in the formular be explained?
>
> 3 is quite easy to explain because of RGB. But why 5 ?
> Is it because of an alpha channel?

Theoretically, only 4 channels would be required (and if alpha output 
isn't desired, 3 channels would actually do); however, all colour 
storage inside POV-Ray has traditionally been using the "Red, Green, 
Blue, Transmit, Filter" 5-channel colour model all throughout the 
program, in each and every nook and cranny. Since the release of 3.7.0, 
some effort has been made to clean up the internal colour handling to 
only use a 3-channel RGB or 4-channel RGBA (or RGBT) colour model where 
possible, but this process is still ongoing, and result image storage is 
one area that hasn't been tackled yet.

I'm a bit puzzled though why a large image should result in problems, as 
a mechanism has been in place for quite a while now to place large 
output image buffers on hard disk rather than main memory, and this 
mechanism is designed to cope with image sizes way beyond 4GB even on 
32-bit systems. (Unless you happen to still use a Fat32 hard disk 
partition, which indeed doesn't support files of 4GB size or more.)


Post a reply to this message

From: Christian Baun
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 28 Apr 2015 07:05:01
Message: <web.553f68d540a53ee3a2f40c830@news.povray.org>
Hello,

the error occurs also, when I try to render just a part of the lines (+SR and
+ER) of the 12800x9600 image.

Best Regards
   Christian


Post a reply to this message

From: clipka
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 28 Apr 2015 16:25:14
Message: <553fecaa$1@news.povray.org>
Am 28.04.2015 um 13:02 schrieb Christian Baun:
> Hello,
>
> the error occurs also, when I try to render just a part of the lines (+SR and
> +ER) of the 12800x9600 image.

That's not too much of a surprise, as the buffer reserved for the image 
will have the full size. Another thing where improvement would be possible.


Post a reply to this message

From: Christian Baun
Subject: Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7
Date: 29 Apr 2015 15:40:00
Message: <web.5541332a40a53ee39ade23530@news.povray.org>
Thanks a lot for the answer.
This explains my observations.

Best Regards
   Christian


Post a reply to this message

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