Re: [Jack-Devel] Application crashes when connecting newly registered ports using callback.
On Thu, Aug 16, 2012 at 12:24 PM, Fabrice Lebas <[hidden]>wrote:
> Hi All,
>
> I am maintainer of meterec and I am stuck with a problem when trying
> to automatically connect to ports beeing newly registered.
>
> I use jack_set_port_registration_callback() to have
> process_port_register() handling new ports. In process_port_register()
> I look if the port is part of the list I want to connect to and from
> there call connect_any_port() function that is used also when
> connecting already existing ports manually or connecting existing
> ports at startup.
>
you cannot make calls that talk to the server while in a server-initiated
callback.
this ought to be documented along with a list of jack api calls that talk
to the server. but it isn't.
>
> Only when called from process_port_register() the jack_connect()
> function inside connect_any_port() fails and the app crashes after
> jackd issues the following message:
> 'bad status (1) for client meterc handling event (type = 6)'
>
an app that crashes when the server zombifies it or disconnects from it
needs some attention.
1345210882.5488_0.ltw:2,a <CAFa_cKmX=LyWV8SBh6Gr3CUh+e_2WrhnM2+nf9W7NFt8YpuP-Q at mail dot gmail dot com>