Skip to content

Update source code 12/09/2026 [Batch1] - #17

Merged
GirishKadirisani merged 1 commit into
mainfrom
dev
Sep 12, 2026
Merged

GirishKadirisani merged 1 commit into
mainfrom
dev

Conversation

@GirishKadirisani

Copy link
Copy Markdown
Contributor

Here is the change:

  1. qtimlqnn: fix segfault on teardown by clearing tensor client buffers

gst_ml_qnn_engine_free() no longer clears the input/output Qnn_Tensor_t
clientBuf.data/dataSize before releasing graph info and the QNN system
context. These tensors alias memory owned by the system context handle
(for cached/DLC models) or the model library, and their clientBuf still
points at the last GstBuffer used in execute() at teardown time. Freeing
the system context while that stale buffer pointer is still set caused
libQnnSystem.so to crash inside its internal free() during
QnnSystemContext_free().

This clearing step existed prior to "qtimlqnn: Add support for loading
model graph from DLC" (a992eeaf), which dropped it while refactoring the
cached/uncached graph teardown into the FreeGraph/g_free branches.
Restore it, iterating graph_infos[0] before releasing graph info, as
before.

Signed-off-by: Pratik Pachange <ppachang@qti.qualcomm.com>
Signed-off-by: Girish K <girik@qti.qualcomm.com>
@GirishKadirisani
GirishKadirisani merged commit 2656273 into main Sep 12, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants