smartdevicelink/sdl_ios

Choice Set Present followed directly by a Delete can have undefined behavior

joeljfischer opened this issue · 1 comments

Bug Report

In certain cases, a present can happen when the choices are not available on the head unit. The present operation should double-check when it starts that all cells are preloaded on the head unit. When a present the operation should be created along with the preload, and updated when the preload finishes. That way the delete will be slotted after the present.

Reproduction Steps
  1. Send a present with a large number of choices
  2. Immediately send a delete for several of those choices
Expected Behavior

The delete happens after the present

Observed Behavior

Undefined error behavior

OS & Version Information
  • iOS Version: n/a
  • SDL iOS Version: v7.3.0-develop
  • Testing Against: n/a
Test Case, Sample Code, and / or Example App

See SDLChoiceSetManagerSpec L432 commented out test

Corresponding app library issues: