POV-Ray : Newsgroups : povray.beta-test : problem with +D option at specific output file dimensions : problem with +D option at specific output file dimensions Server Time
1 May 2024 06:37:27 EDT (-0400)
  problem with +D option at specific output file dimensions  
From: James Dietrich
Date: 12 Dec 2013 12:30:00
Message: <web.52a9f1745cd556cce8302f4e0@news.povray.org>
Hello,

http://wiki.povray.org/content/HowTo:Make_A_Bug_Report instructed me to come
here first before submitting a bug report. Please let me know if I should submit
this to the bug tracker.

When I perform a render with this command line:
povray +W2596 +H1003 +Ispiral.pov +Ospiral.png +D
it fails every time in one of several ways:
 -> a segmentation fault
 -> aborted by xcb (example given below)
 -> aborted by glibc (example given below)
 -> apparent deadlock (render does not complete and povray process has to be
killed with kill -9)

If, instead, I change the +D to -D:
povray +W2596 +H1003 +Ispiral.pov +Ospiral.png -D
the render always completes successfully.

It seems that the problem is not in the povray file. I reduced my original
povray file to the following, and the problem still occurs as described above.
Then I tried a different povray file that I had written over three years ago,
and the problem happened in exactly the same way.
---------------spiral.pov-----------------
#version 3.7;
global_settings {
    assumed_gamma 1.0
}

camera {
    location <0, 0, -30>
    right <2, 0, 0>
    angle 25
    look_at <0, 0, 0>
}

light_source { <20, 30, -50>, color rgb 1 }

box {
    <-5, -2, -1>, <5, 2, 1>
    pigment {
        color rgb 1
    }
}
------------------------------------------

The problem is related to the exact dimensions of the output file--the +W and +H
options. For example, if I change the +H1003 to +H1004, the render completes
successfully with +D.

I am currently running povray 3.7.0 cloned from
https://github.com/POV-Ray/povray.git (latest commit is d60416f4cb). I compiled
it myself on a machine running 64-bit Debian 7.2. But I don't think the exact
version of Povray matters in this case, because I first noted this problem with
3.7.0.RC7.

Please let me know if any other information would be helpful, or if there's
anything else I can do to help track this down.

Thank you.

James Dietrich


Here's an example of an xcb abort:
==== [Rendering...] ========================================================
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been
called
[xcb] Aborting, sorry about that.
povray: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.
Aborted


Here's an example of a glibc abort:
==== [Rendering...] ========================================================
*** glibc detected *** povray: corrupted double-linked list: 0x0000000001ccf290
***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x76d76)[0x7fe85838fd76]
/lib/x86_64-linux-gnu/libc.so.6(+0x78777)[0x7fe858391777]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fe858394aac]
povray[0x4b9e57]
povray[0x422c34]
/usr/lib/libboost_thread.so.1.49.0(+0x10629)[0x7fe85a944629]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50)[0x7fe8586a9b50]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fe8583f3a7d]
======= Memory map: ========
00400000-006a0000 r-xp 00000000 08:02 2249279
/usr/local/bin/povray
008a0000-008a6000 rw-p 002a0000 08:02 2249279
/usr/local/bin/povray
008a6000-008c8000 rw-p 00000000 00:00 0
00c95000-01f09000 rw-p 00000000 00:00 0                                  [heap]
7fe840000000-7fe840fe6000 rw-p 00000000 00:00 0
7fe840fe6000-7fe844000000 ---p 00000000 00:00 0
7fe84701f000-7fe84757e000 rw-p 00000000 00:00 0
7fe847add000-7fe84803c000 rw-s 00000000 00:04 47710231
/SYSV00000000 (deleted)
7fe84803c000-7fe848041000 r-xp 00000000 08:02 2109057
/usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fe848041000-7fe848240000 ---p 00005000 08:02 2109057
/usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fe848240000-7fe848241000 r--p 00004000 08:02 2109057
/usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fe848241000-7fe848242000 rw-p 00005000 08:02 2109057
/usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fe848242000-7fe84824b000 r-xp 00000000 08:02 2112518
/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fe84824b000-7fe84844a000 ---p 00009000 08:02 2112518
/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fe84844a000-7fe84844b000 rw-p 00008000 08:02 2112518
/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fe84844b000-7fe848455000 r-xp 00000000 08:02 2112520
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fe848455000-7fe848654000 ---p 0000a000 08:02 2112520
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fe848654000-7fe848655000 rw-p 00009000 08:02 2112520
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fe848655000-7fe848656000 ---p 00000000 00:00 0
7fe848656000-7fe84c000000 rw-p 00000000 00:00 0
7fe84c000000-7fe84c7c6000 rw-p 00000000 00:00 0
7fe84c7c6000-7fe850000000 ---p 00000000 00:00 0
7fe85018f000-7fe850203000 rw-p 00000000 00:00 0
7fe8502e4000-7fe85045b000 r--p 00000000 08:02 2106752
/usr/lib/locale/locale-archive
7fe85045b000-7fe85045c000 ---p 00000000 00:00 0
7fe85045c000-7fe850c5c000 rw-p 00000000 00:00 0
7fe850e23000-7fe850e24000 ---p 00000000 00:00 0
7fe850e24000-7fe851624000 rw-p 00000000 00:00 0
[stack:5680]
7fe851624000-7fe851625000 ---p 00000000 00:00 0
7fe851625000-7fe851e25000 rw-p 00000000 00:00 0
[stack:5677]
7fe851e25000-7fe851e26000 ---p 00000000 00:00 0
7fe851e26000-7fe852626000 rw-p 00000000 00:00 0
[stack:5676]
7fe852626000-7fe852627000 ---p 00000000 00:00 0
7fe852627000-7fe852e27000 rw-p 00000000 00:00 0
[stack:5675]
7fe852e27000-7fe852e28000 ---p 00000000 00:00 0
7fe852e28000-7fe853628000 rw-p 00000000 00:00 0
[stack:5674]
7fe853628000-7fe85363b000 r-xp 00000000 08:02 1050645
/lib/x86_64-linux-gnu/libresolv-2.13.so
7fe85363b000-7fe85383a000 ---p 00013000 08:02 1050645
/lib/x86_64-linux-gnu/libresolv-2.13.so
7fe85383a000-7fe85383b000 r--p 00012000 08:02 1050645
/lib/x86_64-linux-gnu/libresolv-2.13.so
7fe85383b000-7fe85383c000 rw-p 00013000 08:02 1050645
/lib/x86_64-linux-gnu/libresolv-2.13.so
7fe85383c000-7fe85383e000 rw-p 00000000 00:00 0
7fe85383e000-7fe853844000 r-xp 00000000 08:02 2112657
/usr/lib/x86_64-linux-gnu/libogg.so.0.8.0
7fe853844000-7fe853a43000 ---p 00006000 08:02 2112657
/usr/lib/x86_64-linux-gnu/libogg.so.0.8.0
7fe853a43000-7fe853a44000 rw-p 00005000 08:02 2112657
/usr/lib/x86_64-linux-gnu/libogg.so.0.8.0
7fe853a44000-7fe853a70000 r-xp 00000000 08:02 2112661
/usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7fe853a70000-7fe853c6f000 ---p 0002c000 08:02 2112661
/usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7fe853c6f000-7fe853c70000 r--p 0002b000 08:02 2112661
/usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7fe853c70000-7fe853c71000 rw-p 0002c000 08:02 2112661
/usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7fe853c71000-7fe853f24000 r-xp 00000000 08:02 2113734
/usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fe853f24000-7fe854123000 ---p 002b3000 08:02 2113734
/usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fe854123000-7fe85413f000 r--p 002b2000 08:02 2113734
/usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fe85413f000-7fe854140000 rw-p 002ce000 08:02 2113734
/usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fe854140000-7fe85418b000 r-xp 00000000 08:02 2121497
/usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fe85418b000-7fe85438a000 ---p 0004b000 08:02 2121497
/usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fe85438a000-7fe85438b000 r--p 0004a000 08:02 2121497
/usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fe85438b000-7fe85438c000 rw-p 0004b000 08:02 2121497
/usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fe85438c000-7fe8543a1000 r-xp 00000000 08:02 1050647
/lib/x86_64-linux-gnu/libnsl-2.13.so
7fe8543a1000-7fe8545a0000 ---p 00015000 08:02 1050647
/lib/x86_64-linux-gnu/libnsl-2.13.so
7fe8545a0000-7fe8545a1000 r--p 00014000 08:02 1050647
/lib/x86_64-linux-gnu/libnsl-2.13.so
7fe8545a1000-7fe8545a2000 rw-p 00015000 08:02 1050647
/lib/x86_64-linux-gnu/libnsl-2.13.so
7fe8545a2000-7fe8545a4000 rw-p 00000000 00:00 0
7fe8545a4000-7fe8545b2000 r-xp 00000000 08:02 2112823
/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fe8545b2000-7fe8547b2000 ---p 0000e000 08:02 2112823
/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fe8547b2000-7fe8547b3000 rw-p 0000e000 08:02 2112823
/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fe8547b3000-7fe8547b7000 r-xp 00000000 08:02 1050671
/lib/x86_64-linux-gnu/libattr.so.1.1.0
7fe8547b7000-7fe8549b6000 ---p 00004000 08:02 1050671
/lib/x86_64-linux-gnu/libattr.so.1.1.0
7fe8549b6000-7fe8549b7000 r--p 00003000 08:02 1050671
/lib/x86_64-linux-gnu/libattr.so.1.1.0
7fe8549b7000-7fe8549b8000 rw-p 00004000 08:02 1050671
/lib/x86_64-linux-gnu/libattr.so.1.1.0
7fe8549b8000-7fe8549bd000 r-xp 00000000 08:02 2121449
/usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1Aborted


Post a reply to this message

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