POV-Ray : Newsgroups : povray.macintosh : EXC_BAD_ACCESS error for IStream Server Time
14 Oct 2024 04:10:37 EDT (-0400)
  EXC_BAD_ACCESS error for IStream (Message 1 to 2 of 2)  
From: S-Lim
Subject: EXC_BAD_ACCESS error for IStream
Date: 14 Jan 2014 00:25:01
Message: <web.52d4c9f42031a1774afc32f0@news.povray.org>
Hi, I'm trying to build an OS X app that has a GUI layout similar to the Windows
version while running the linux version of povray in the background for
operations, since it is compilable with modifications i assume it works. I've
used the povray 3.6.2 source and fixed the outstanding errors accordingly with
the help of the internet. I'm using precompiled libraries for the image
libraries and they've been included into my xcode project.

I understand that it might sound really amateurish but I'm just starting with
the linux and mac systems so please bear with me, thanks!

I'm executing the file by splitting up the original main function into smaller
subfunctions and passing in "povray /path/to/file/biscuit.pov" where path to
file is the path to the pov file.

Currently I'm having problems with the IStream portion in fileinputoutput.cpp.

the exact error is:
"Thread 1: EXC_BAD_ACCESS (code=I386_GPFLT)"
at this part of the code
"POV_PLATFORM_BASE.CreateIStream(stype)"

I've googled extensively with regard to that error, apparently it has something
to do with an invalid pointer, invalid location or permissions. But digging into
the source it seems to me that this create stream simply creates a class object
[IStream : IOBase] with the value 'stype' in one of its arguments.

Any ideas what might be causing the problem and how do I address it? Thanks in
advance for any help!


Post a reply to this message

From: SLby
Subject: Re: EXC_BAD_ACCESS error for IStream
Date: 14 Jan 2014 02:10:01
Message: <web.52d4e216debb686674afc32f0@news.povray.org>
"S-Lim" <byl### [at] hotmailcom> wrote:
> Hi, I'm trying to build an OS X app that has a GUI layout similar to the Windows
> version while running the linux version of povray in the background for
> operations, since it is compilable with modifications i assume it works. I've
> used the povray 3.6.2 source and fixed the outstanding errors accordingly with
> the help of the internet. I'm using precompiled libraries for the image
> libraries and they've been included into my xcode project.
>
> I understand that it might sound really amateurish but I'm just starting with
> the linux and mac systems so please bear with me, thanks!
>
> I'm executing the file by splitting up the original main function into smaller
> subfunctions and passing in "povray /path/to/file/biscuit.pov" where path to
> file is the path to the pov file.
>
> Currently I'm having problems with the IStream portion in fileinputoutput.cpp.
>
> the exact error is:
> "Thread 1: EXC_BAD_ACCESS (code=I386_GPFLT)"
> at this part of the code
> "POV_PLATFORM_BASE.CreateIStream(stype)"
>
> I've googled extensively with regard to that error, apparently it has something
> to do with an invalid pointer, invalid location or permissions. But digging into
> the source it seems to me that this create stream simply creates a class object
> [IStream : IOBase] with the value 'stype' in one of its arguments.
>
> Any ideas what might be causing the problem and how do I address it? Thanks in
> advance for any help!

Not sure if I can actually edit the previous post, so sorry for the double
posting. but i believe the POV_PLATFORM_BASE was the cause of the problem for
me. i stripped it down to its bare function which is essentially new
IStream(type) and it worked. sorry for the trouble! Can I delete this somehow?


Post a reply to this message

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