Re: AOO plugin for PD on SGI Irix

Wolfgang Gaggl via Pd-list <[email protected]> Sun, 19 Jul 2026 14:47:00 -0000
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
Hi Christof, 
This is a dual-CPU Octane, so it fulfills the minimum definition of "multi-core system" :)

Compiled using AOO_LOG_LEVEL=Debug, seeing your case #1 with process would block right before xrun:
[aoo][debug] AooSink: handle pong
[aoo][debug] AooSink: handle ping
[aoo][debug] AooSource: process would block
[aoo][debug] AooSource: send 1 empty blocks for xrun (1 blocks)
[aoo][debug] AooSource: process would block
[aoo][debug] AooSource: send 1 empty blocks for xrun (1 blocks)
[aoo][debug] AooSource: process would block
[aoo][debug] AooSource: send 1 empty blocks for xrun (1 blocks)
[aoo][debug] AooSource: send /ping to 127.0.0.1:9999|1
[aoo][debug] AooSink: handle ping
[aoo][debug] AooSink: handle ping
[aoo][debug] AooSink: send /pong to 127.0.0.1:9998|1
[aoo][debug] AooSink: ping delta: 1.00426, packet loss: 0
[aoo][debug] AooSink: send /ping to 127.0.0.1:9998|1
[aoo][debug] AooSource: handle pong
[aoo][debug] AooSource: handle ping
[aoo][debug] AooSource: send /pong to 127.0.0.1:9999|1
[aoo][debug] AooSink: handle pong
[aoo][debug] AooSink: handle ping
[aoo][debug] AooSource: process would block
[aoo][debug] AooSource: send 1 empty blocks for xrun (1 blocks)
[aoo][debug] AooSource: send /ping to 127.0.0.1:9999|1
[aoo][debug] AooSink: handle ping
[aoo][debug] AooSink: handle ping

Apparently it runs into a situation where it cannot obtain a lock in ./aoo/src/source.cpp:
    shared_lock lock(update_mutex_, sync::try_to_lock); // reader lock!
    if (!lock.owns_lock()){
        LOG_DEBUG("AooSource: process would block");
        add_xrun(nsamples);
        return kAooErrorIdle; // ?
    }

Any suggestions what we could do about it (maybe it helps to try_to_lock again)?

Thanks,
Wolfgang
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/XXTUEYDULZDO2Q2BBK7OHLTVQ5GHBY7D/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/