AxisCommunications / acap-native-sdk

ACAP Native SDK
https://hub.docker.com/r/axisecp/acap-native-sdk
Apache License 2.0
13 stars 2 forks source link

issue with "axoverlay_set_overlay_size" fw 10.8.1 + #26

Closed paromarc closed 2 years ago

paromarc commented 2 years ago

Describe the bug

Hi,

I have been testing the Cairo overlay APIs in ACAP3 and 4 and came across an issue when using axoverlay_set_overlay_size causing a crash.

I am testing on a Q1615 MKIII and the issue started from fw 10.8.1 (before that release all was working fine) and higher. I managed to narrow it down to this specific function: "axoverlay_set_overlay_size" which allows to resize a box. I have also created a couple of videos showing what happens.

Here is a demo video showing the test application not using the "axoverlay_set_overlay_size" --> https://www.youtube.com/watch?v=8KUGwci_u5w

And here is the test application using "axoverlay_set_overlay_size" --> https://www.youtube.com/watch?v=6KoEoPeFKe8

When running the same sample test code on fw 10.7.3 I have no issues.

To reproduce

Use "axoverlay_set_overlay_size"

Steps to reproduce the behavior:

Run the "axoverlay_set_overlay_size" on fw 10.8.1 and higher through ssh terminal. Logs will show this message:

(process:6939): GLib-CRITICAL **: 10:59:18.712: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed overlaytest: src/overlay.c:749: overlay_free_overlay_context: Assertion `ovl_table != NULL' failed. Aborted (core dumped)

Environment

Additional context

Willing to share test code to AXIS internally if needed.

Thanks! Marco Axis Communications

pataxis commented 2 years ago

Hi @paromarc , thanks for the detailed report. We will get back to you when we have had time to test.

paromarc commented 2 years ago

fw 10.12.97 fixes the issue ! Thanks!