POV-Ray : Newsgroups : povray.advanced-users : Segmentation fault (core dumped) with function {pigment{image_map{}}} Server Time
15 Oct 2024 08:14:58 EDT (-0400)
  Segmentation fault (core dumped) with function {pigment{image_map{}}} (Message 1 to 3 of 3)  
From: Bald Eagle
Subject: Segmentation fault (core dumped) with function {pigment{image_map{}}}
Date: 11 Jul 2020 18:20:00
Message: <web.5f0a39f9cf006aefb0b41570@news.povray.org>
I was working on creating a displacement map for a globe, using a function to
vary the radius of a spherical isosurface.

I got bogged down in a bit of math to convert x,y,z into a latitude/longitude
map in the 0-1 range, but then when I thought I had that fixed, I started
getting:

oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
Segmentation fault (core dumped)
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
[17:15:58.834] WARN QTextCursor::setPosition: Position '3012' out of range
((null):0)
Segmentation fault (core dumped)
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
[17:18:28.307] WARN QTextCursor::setPosition: Position '3012' out of range
((null):0)
Segmentation fault (core dumped)
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
[17:27:29.126] WARN QTextCursor::setPosition: Position '3012' out of range
((null):0)


I posted the code in the text files section:

http://news.povray.org/povray.text.scene-files/message/%3Cweb.5f0a367094a0d6d2fb0b41570%40news.povray.org%3E/#%3Cweb.5f
0a367094a0d6d2fb0b41570%40news.povray.org%3E

You can likely use any image map you have lying around.
I used:
https://holtz.org/Library/Images/Natural%20Science/Astronomy/Earth/Maps/NOAA%20Globe%20topo%20shaded.gif

Perhaps someone can play with it a bit and see what triggers the core dump, and
maybe also come up with some better equations for converting cartesian to lat /
long and then to 0-1


Post a reply to this message

From: Bald Eagle
Subject: Re: Segmentation fault (core dumped) with function {pigment{image_map{}}}
Date: 11 Jul 2020 20:35:00
Message: <web.5f0a5aa963ce30e3fb0b41570@news.povray.org>
I have tracked it down to the acos term in the Lat function.

#declare E = 0.000001;
acos (Y/Length(X, 0, Z)) crashes
acos (Y/Length(X, E, Z)) crashes
acos (Y/Length(X, 1, Z)) works


Post a reply to this message

From: Bald Eagle
Subject: Re: Segmentation fault (core dumped) with function {pigment{image_map{}}}
Date: 11 Jul 2020 22:10:00
Message: <web.5f0a704d63ce30e3fb0b41570@news.povray.org>
Solved.

see:
http://news.povray.org/povray.binaries.images/message/%3Cweb.5f0a6d9a6f747b6fb0b41570%40news.povray.org%3E/#%3Cweb.5f0a
6d9a6f747b6fb0b41570%40news.povray.org%3E


Post a reply to this message

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