Running gstreamer in MAC OS X -- Leopard

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Running gstreamer in MAC OS X -- Leopard

Philip Joseph-2
Hi-

  I have built gstreamer in MAC OS  (Leopard) and I am attempting to run it.
When I call gst-launch (with or without arguments), I get the following output
many times:

------
The process has forked and you cannot use this CoreFoundation functionality
safely. You MUST exec().
Break on
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
to debug.
------

followed by this line right before the program exits:

-------
Error initializing: Error re-scanning registry , child terminated by signal
-------

Has anyone ever run into this issue?  Does anyone know of a fix?

Per discussion on this webpage,
http://developer.apple.com/technotes/tn2005/tn2083.html#SECDAEMONVSFRAMEWORKS
I have attempted to run gst-launch through launchd, but I was unsuccessful in
doing so.  I am new to MAC, so it might be that I am just missing something
small, but I have no clue.

I also did a general search on the error, but was unable to figure out what
would be a good fix.

Any help would be greatly appreciated.

Thanks,
Phil



________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Running gstreamer in MAC OS X -- Leopard

michael smith-6-3
On Thu, Apr 24, 2008 at 4:00 PM, Philip Joseph <[hidden email]> wrote:

> Hi-
>
>   I have built gstreamer in MAC OS  (Leopard) and I am attempting to run it.
>  When I call gst-launch (with or without arguments), I get the following output
>  many times:
>
>  ------
>  The process has forked and you cannot use this CoreFoundation functionality
>  safely. You MUST exec().
>  Break on
>  __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
>  to debug.
>  ------

There's an open bug about this; nobody has stepped up to write a fix for it yet.

A workaround is to set the environment variable GST_REGISTRY_FORK=no
(the downside of that is that memory usage will be substantially
higher if the registry needs re-scanning).

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Running gstreamer in MAC OS X -- Leopard

Tim-Philipp Müller-2
On Thu, 2008-04-24 at 16:10 -0700, Michael Smith wrote:

> > The process has forked and you cannot use this CoreFoundation
> > functionality safely. You MUST exec().
> > Break on
> > __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
> > to debug.
>
> There's an open bug about this; nobody has stepped up to write a fix for it yet.
>
> A workaround is to set the environment variable GST_REGISTRY_FORK=no
> (the downside of that is that memory usage will be substantially
> higher if the registry needs re-scanning).

I believe CVS of core 'fixes' this by automatically not forking on OSX.

 Cheers
  -Tim



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Running gstreamer in MAC OS X -- Leopard

Julien Moutte-2
In reply to this post by michael smith-6-3

I think I fixed this already by making sure that on darwin we are not
forking to update registry.

Please try again in latest CVS head of GStreamer core.

Julien

Michael Smith wrote:

> On Thu, Apr 24, 2008 at 4:00 PM, Philip Joseph <[hidden email]> wrote:
>  
>> Hi-
>>
>>   I have built gstreamer in MAC OS  (Leopard) and I am attempting to run it.
>>  When I call gst-launch (with or without arguments), I get the following output
>>  many times:
>>
>>  ------
>>  The process has forked and you cannot use this CoreFoundation functionality
>>  safely. You MUST exec().
>>  Break on
>>  __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
>>  to debug.
>>  ------
>>    
>
> There's an open bug about this; nobody has stepped up to write a fix for it yet.
>
> A workaround is to set the environment variable GST_REGISTRY_FORK=no
> (the downside of that is that memory usage will be substantially
> higher if the registry needs re-scanning).
>
> Mike
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Running gstreamer in MAC OS X -- Leopard

michael smith-6-3
In reply to this post by Tim-Philipp Müller-2
On Fri, Apr 25, 2008 at 2:15 AM, Tim Müller <[hidden email]> wrote:

> On Thu, 2008-04-24 at 16:10 -0700, Michael Smith wrote:
>
>  > > The process has forked and you cannot use this CoreFoundation
>  > > functionality safely. You MUST exec().
>  > > Break on
>  > > __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
>  > > to debug.
>  >
>  > There's an open bug about this; nobody has stepped up to write a fix for it yet.
>  >
>  > A workaround is to set the environment variable GST_REGISTRY_FORK=no
>  > (the downside of that is that memory usage will be substantially
>  > higher if the registry needs re-scanning).
>
>  I believe CVS of core 'fixes' this by automatically not forking on OSX.

That's more of a workaround than a fix. We'll eventually need to solve
this properly (it may require the re-introduction of a separate
executable, but that would be fine).

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Running gstreamer in MAC OS X -- Leopard

Philip Joseph-2
In reply to this post by Philip Joseph-2
Hi-

Thanks for the prompt response and the suggestions.

Setting the GST_REGISTRY_FORK to "no" doesn't seem to work for me.  I was trying
to determine what the problem was, but I was unsuccessful in doing so.

I put the following line in my .bash_profile to set the GST_REGISTRY_FORK
environment variable, and I verified using the "set" command that the variable
is set.  Is this all I needed to do?

-------------
GST_REGISTRY_FORK=no
-------------


I did pull the latest off of head, and my initial build had some problems with
the ./po/gstreamer-0.10.pot file, but after replacing that file with the version
from the 0.10.19 tar file, everything worked out fine.

The error I was getting with the gstreamer-0.10.pot file on HEAD is the
following:

-----------
Making all in po
/usr/local/bin/msgmerge --update af.po gstreamer-0.10.pot
.......................... done.
/usr/local/bin/msgmerge: `af.po': No such file or directory
make[2]: *** [af.po] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
-----------

Any thoughts on what could be wrong with this file or with the setting of the
GST_REGISTRY_FORK environment variable?  

Thanks,
Phil




________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


---- On Fri, 25 Apr 2008, Julien Moutte ([hidden email]) wrote:


I think I fixed this already by making sure that on darwin we are not
forking to update registry.

Please try again in latest CVS head of GStreamer core.

Julien

Michael Smith wrote:
> On Thu, Apr 24, 2008 at 4:00 PM, Philip Joseph  wrote:
>  
>> Hi-
>>
>>   I have built gstreamer in MAC OS  (Leopard) and I am attempting to run it.
>>  When I call gst-launch (with or without arguments), I get the following
output
>>  many times:
>>
>>  ------
>>  The process has forked and you cannot use this CoreFoundation functionality
>>  safely. You MUST exec().
>>  Break on
>>
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
>>  to debug.
>>  ------
>>    
>
> There's an open bug about this; nobody has stepped up to write a fix for it
yet.

>
> A workaround is to set the environment variable GST_REGISTRY_FORK=no
> (the downside of that is that memory usage will be substantially
> higher if the registry needs re-scanning).
>
> Mike
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  




-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Running gstreamer in MAC OS X -- Leopard

Mattias Barthel
Hi,

Try:

export GST_REGISTRY_FORK=no

Mattias

Philip Joseph wrote:

> Hi-
>
> Thanks for the prompt response and the suggestions.
>
> Setting the GST_REGISTRY_FORK to "no" doesn't seem to work for me.  I was trying
> to determine what the problem was, but I was unsuccessful in doing so.
>
> I put the following line in my .bash_profile to set the GST_REGISTRY_FORK
> environment variable, and I verified using the "set" command that the variable
> is set.  Is this all I needed to do?
>
> -------------
> GST_REGISTRY_FORK=no
> -------------
>
>
> I did pull the latest off of head, and my initial build had some problems with
> the ./po/gstreamer-0.10.pot file, but after replacing that file with the version
> from the 0.10.19 tar file, everything worked out fine.
>
> The error I was getting with the gstreamer-0.10.pot file on HEAD is the
> following:
>
> -----------
> Making all in po
> /usr/local/bin/msgmerge --update af.po gstreamer-0.10.pot
> .......................... done.
> /usr/local/bin/msgmerge: `af.po': No such file or directory
> make[2]: *** [af.po] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> -----------
>
> Any thoughts on what could be wrong with this file or with the setting of the
> GST_REGISTRY_FORK environment variable?  
>
> Thanks,
> Phil
>
>
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
>
> ---- On Fri, 25 Apr 2008, Julien Moutte ([hidden email]) wrote:
>
>
> I think I fixed this already by making sure that on darwin we are not
> forking to update registry.
>
> Please try again in latest CVS head of GStreamer core.
>
> Julien
>
> Michael Smith wrote:
>  
>> On Thu, Apr 24, 2008 at 4:00 PM, Philip Joseph  wrote:
>>  
>>    
>>> Hi-
>>>
>>>   I have built gstreamer in MAC OS  (Leopard) and I am attempting to run it.
>>>  When I call gst-launch (with or without arguments), I get the following
>>>      
> output
>  
>>>  many times:
>>>
>>>  ------
>>>  The process has forked and you cannot use this CoreFoundation functionality
>>>  safely. You MUST exec().
>>>  Break on
>>>
>>>      
> __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
>  
>>>  to debug.
>>>  ------
>>>    
>>>      
>> There's an open bug about this; nobody has stepped up to write a fix for it
>>    
> yet.
>  
>> A workaround is to set the environment variable GST_REGISTRY_FORK=no
>> (the downside of that is that memory usage will be substantially
>> higher if the registry needs re-scanning).
>>
>> Mike
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Don't miss this year's exciting event. There's still time to save $100.
>> Use priority code J8TL2D2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>  
>>    
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>  


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel