[PATCH 0/5] Fix occasional software ISP assertion error on stop

Stanislaw Gruszka stanislaw.gruszka at linux.intel.com
Mon Feb 24 13:20:46 CET 2025


Hi all,

On Mon, Feb 24, 2025 at 01:08:49PM +0100, Milan Zamazal wrote:
> When software ISP is stopped, there can be pending messages in the
> message queue that will attempt to call the already stopped IPA,
> resulting in an assertion error like this:
> 
>   FATAL default soft_ipa_proxy.cpp:456 assertion "state_ == ProxyRunning" failed in processStatsThread()
> 
> This patch series fixes the problem and also attempts to prevent other
> problems related to message handling when or after software ISP is
> stopped.

I can happily confirm this indeed fixes the assertion on qcam stop :-)

For the series:
Tested-by: Stanislaw Gruszka <stanislaw.gruszka at linux.intel.com>

> Milan Zamazal (5):
>   libcamera: software_isp: Emit ispStatsReady only if IPA is running
>   libcamera: software_isp: Handle queued output buffers on stop
>   libcamera: software_isp: Handle queued input buffers on stop
>   libcamera: base: Fix formatting in thread.cpp
>   libcamera: software_isp: Modify dispatching messages on stop
> 
>  include/libcamera/base/thread.h               |  3 +-
>  .../internal/software_isp/software_isp.h      |  3 ++
>  src/libcamera/base/thread.cpp                 | 19 ++++----
>  src/libcamera/software_isp/software_isp.cpp   | 46 +++++++++++++++++--
>  .../libcamera_templates/proxy_functions.tmpl  |  2 +-
>  5 files changed, 58 insertions(+), 15 deletions(-)
> 
> -- 
> 2.48.1
> 


More information about the libcamera-devel mailing list