POV-Ray : Newsgroups : povray.programming : Warning! Error in source Povray-3.7 : Re: Warning! Error in source Povray-3.7 Server Time
19 Apr 2024 19:24:13 EDT (-0400)
  Re: Warning! Error in source Povray-3.7  
From: Le Forgeron
Date: 13 Jun 2013 03:09:30
Message: <51b9702a$1@news.povray.org>
Le 13/06/2013 08:36, LanuHum a écrit :
> Hi,
> 
> I don't speak English!
> 
> Povray in Linux: segmentation fault, if start Povray in Blender or Eclipse, if
> enable window.
> Our people found a problem, but don't speak English too.
> In 3.7.0.RC7 file unix/disp_sdl.cpp
> line 235  SDL_Rect **modes = SDL_ListModes(NULL, SDL_FULLSCREEN);
> 
> the call of the SDL_ListModes function returns -1 when povray is started from a
> blender
> it is necessary to make check on -1
> as SDL_ListModes can return -1
> http://sdl.beuc.net/sdl.wiki/SDL_ListModes
> 
> Correct, please!
> 

I would confirm (from another source):

http://www.libsdl.org/docs/html/sdllistmodes.html

Now, what a shitty specification of return: nullptr, -1 or valid pointer.
On architecture without alignment constraint, that removes two addresses
from the usable range.

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


Post a reply to this message

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