POV-Ray : Newsgroups : povray.beta-test : Segmentation fault with animation of large image Server Time
29 Dec 2024 13:04:28 EST (-0500)
  Segmentation fault with animation of large image (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Cousin Ricky
Subject: Segmentation fault with animation of large image
Date: 28 Jan 2012 13:35:01
Message: <web.4f243f3ef56eaf9a78641e0c0@news.povray.org>
There are actually two issues here.  The first is that the output display does
not work if the image is more than 1270 pixels wide or more than 720 pixels
high.  The output image file is correctly rendered, but the display remains
blank.  This occurs in openSUSE Linux 12.1, but not in Windows 7.

The second is that if the image is more than 1270 pixels wide or more than 720
pixels high, animation fails with a segmentation fault during the second
rendered frame.  This happens after parsing is complete and the .pov-state file
is created.  The last message line is the "[Rendering...]" line.

On one occasion, POV-Ray hung, and I had to ctrl-Z kill -9 out of it.

On another occasion, instead of the segmentation fault, I got the message:

   povray: xcb_io.c:140: dequeue_pending_request: Assertion `req ==
dpy->xcb->pending_requests' failed.
   Aborted

There is no crash when -D is used.

I have not run an animation this large in Windows, so I don't know if it's a
problem there.

Neither problem occurs in POV-Ray 3.6.1.

I used the following source code:
__________________________________________

global_settings { assumed_gamma 1 }
light_source { <-1, 1, -1> * 1000, rgb 1 }
sphere { 2.5 * z, 1 pigment { red 1 } }
__________________________________________

POV-Ray version: 3.7RC3
Operating system: openSUSE Linux 12.1
Hardware: HP Pavilion dv5030us Notebook PC (32 bits)
RAM: 1GB
Displays: 1280x800 built-in panel; 1680x1050 HP w2007 external monitor


Post a reply to this message

From: Le Forgeron
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 13:54:15
Message: <4f244457$1@news.povray.org>
Le 28/01/2012 19:32, Cousin Ricky nous fit lire :
> There are actually two issues here.  The first is that the output display does
> not work if the image is more than 1270 pixels wide or more than 720 pixels
> high.  The output image file is correctly rendered, but the display remains
> blank.  This occurs in openSUSE Linux 12.1, but not in Windows 7.

I would challenge that, as my default render size used to be 1025 x
1025. But on Ubuntu.

What are your version of SDL library/ies ?

But to be fair, It might be an issue in 3.7RC3 and not anymore.
(also, see further)

> 
> The second is that if the image is more than 1270 pixels wide or more than 720
> pixels high, animation fails with a segmentation fault during the second
> rendered frame.  This happens after parsing is complete and the .pov-state file
> is created.  The last message line is the "[Rendering...]" line.
> 

I can confirm that one, sort of: the windows being bigger than the
screen (including border), the animation segfaults at frame 2

If it can fit at 1:1, no problem.
If it cannot fit at 1:1, frame 2 get a segfault.

 povray +H2000 +W2000 +KI0 +KF1 +KFF10 +KFI0


> 
> There is no crash when -D is used.

Yep, will attach some debugger on that code to find it.
Thanks for report, can you open an issue in bugs.povray.org, please ?

> 
> I have not run an animation this large in Windows, so I don't know if it's a
> problem there.

Well, if someone can try that on Windows (animation, picture size bigger
in any dimensions, including both, than the available display)

> 
> Neither problem occurs in POV-Ray 3.6.1.
> 
> I used the following source code:
> __________________________________________
> 
> global_settings { assumed_gamma 1 }
> light_source { <-1, 1, -1> * 1000, rgb 1 }
> sphere { 2.5 * z, 1 pigment { red 1 } }
> __________________________________________
> 
> POV-Ray version: 3.7RC3
> Operating system: openSUSE Linux 12.1
> Hardware: HP Pavilion dv5030us Notebook PC (32 bits)
> RAM: 1GB
> Displays: 1280x800 built-in panel; 1680x1050 HP w2007 external monitor

Hint... might be related to your display setting (1280x800...
1270x720... guess what are borders & decorations sizes... )


Post a reply to this message

From: Le Forgeron
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 14:54:52
Message: <4f24528c$1@news.povray.org>
Le 28/01/2012 19:54, Le_Forgeron nous fit lire :
> I can confirm that one, sort of: the windows being bigger than the
> screen (including border), the animation segfaults at frame 2
> 
> If it can fit at 1:1, no problem.
> If it cannot fit at 1:1, frame 2 get a segfault.
> 
>  povray +H2000 +W2000 +KI0 +KF1 +KFF10 +KFI0
> 
> 
>> > 
>> > There is no crash when -D is used.
> Yep, will attach some debugger on that code to find it.

Well, issue is with m_PxCount... in unix/disp_sdl.cpp,
The UnixSDLDisplay::SetPixelScaled() function has it EMPTY on the second
frame of the animation.

That does not help to merge the new pixel in the mapped picture.

Now, to find where that nice vector get cleared... when the picture is
scaled.


Post a reply to this message

From: Le Forgeron
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 15:41:05
Message: <4f245d61$1@news.povray.org>
Should now be fixed with #5604. It was not a cleared vector, but a not
created one on data's transfer of object.


Post a reply to this message

From: Jim Holsenback
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 15:57:37
Message: <4f246141$1@news.povray.org>
On 01/28/2012 03:41 PM, Le_Forgeron wrote:
> Should now be fixed with #5604. It was not a cleared vector, but a not
> created one on data's transfer of object.
>
hmmm ... ~smp/unix/disp_sdl.cpp shows no difference with the version I 
have locally, so I couldn't do a diff to see what you'd changed. Wanted 
to pull the fix and do a little sanity check, but was unable to proceed.


Post a reply to this message

From: Jim Holsenback
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 16:00:26
Message: <4f2461ea$1@news.povray.org>
On 01/28/2012 03:57 PM, Jim Holsenback wrote:
> On 01/28/2012 03:41 PM, Le_Forgeron wrote:
>> Should now be fixed with #5604. It was not a cleared vector, but a not
>> created one on data's transfer of object.
>>
> hmmm ... ~smp/unix/disp_sdl.cpp shows no difference with the version I
> have locally, so I couldn't do a diff to see what you'd changed. Wanted
> to pull the fix and do a little sanity check, but was unable to proceed.

BTW: I have version #19 of the above mentioned file.


Post a reply to this message

From: Chris Cason
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 16:03:26
Message: <4f24629e$1@news.povray.org>
On 29/01/2012 08:00, Jim Holsenback wrote:
>> hmmm ... ~smp/unix/disp_sdl.cpp shows no difference with the version I
>> have locally, so I couldn't do a diff to see what you'd changed. Wanted
>> to pull the fix and do a little sanity check, but was unable to proceed.
> 
> BTW: I have version #19 of the above mentioned file.

It probably needs to be merged to trunk. I'll take a look at it later
today.

-- Chris


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 16:09:19
Message: <4f2463ff@news.povray.org>
On 28.01.12 19:54, Le_Forgeron wrote:
>> I have not run an animation this large in Windows, so I don't know if it's a
>> >  problem there.
> Well, if someone can try that on Windows (animation, picture size bigger
> in any dimensions, including both, than the available display)
>

Why would a crash in Unix-specific code have any impact on Windows-specific 
code?

     Thorsten


Post a reply to this message

From: Jim Holsenback
Subject: Re: Segmentation fault with animation of large image
Date: 28 Jan 2012 16:10:10
Message: <4f246432$1@news.povray.org>
On 01/28/2012 04:03 PM, Chris Cason wrote:
> On 29/01/2012 08:00, Jim Holsenback wrote:
>>> hmmm ... ~smp/unix/disp_sdl.cpp shows no difference with the version I
>>> have locally, so I couldn't do a diff to see what you'd changed. Wanted
>>> to pull the fix and do a little sanity check, but was unable to proceed.
>>
>> BTW: I have version #19 of the above mentioned file.
>
> It probably needs to be merged to trunk. I'll take a look at it later
> today.
>
> -- Chris

operator error I guess ... my p4 client hung and it must have pulled the 
file anyways, because when I came back at it ... said no files updated. 
After some more digging version #19 is indeed what I want and have.


Post a reply to this message

From: Le Forgeron
Subject: Re: Segmentation fault with animation of large image
Date: 29 Jan 2012 06:11:36
Message: <4f252968$1@news.povray.org>
Le 28/01/2012 22:09, Thorsten Froehlich nous fit lire :
> On 28.01.12 19:54, Le_Forgeron wrote:
>>> I have not run an animation this large in Windows, so I don't know if
>>> it's a
>>> >  problem there.
>> Well, if someone can try that on Windows (animation, picture size bigger
>> in any dimensions, including both, than the available display)
>>
> 
> Why would a crash in Unix-specific code have any impact on
> Windows-specific code?

Not directly, but a similar error might have been copied&pasted... or
served as a common design (by same authors or like, so it was an error
on unix, it might also on others.. I just do not know their ways of
handling the scaling (if any) of large pictures)

Better check while at it than sorry in 8 months.


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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