Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2215

Synchronous afb calls can result in an error when done from an event handler

    XMLWordPrintable

    Details

      Description

      In some occasion, using an 'afb_api_call_sync'/'afb_api_call_sync_legacy' results in an crash when there are launched from an application framework event handler function (registered using 'afb_api_on_event' function).
      Error returned before crash : CRITICAL("Can't enter dispatch while in dispatch!").

      The changes to prevent these errors in 'libappcontroller' by using asynchronous calls are already in review (https://gerrit.automotivelinux.org/gerrit/#/c/20323/).

      But, even if it's not recommended to use synchronous calls in event handler, can something be done in the application framework to prevent this type of issue to happen ?

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              jobol-iot josé bollo
              Reporter:
              Jon Jonathan Aillet
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: