Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting the sdlManager crashes due to a race condition in the lifecycle manager #1710

Closed
NicoleYarroch opened this issue Jul 13, 2020 · 0 comments
Assignees
Labels
bug A defect in the library manager-lifecycle Relating to the manager layer - lifecycle manager

Comments

@NicoleYarroch
Copy link
Contributor

NicoleYarroch commented Jul 13, 2020

Bug Report

When restarting the sdlManager, it crashes due to a race condition in the lifecycle manager.

Reproduction Steps
  1. Connect the SDL app to sdl_core + sdl_hmi using a TCP connection. Launch the SDL app.
  2. Open the menu and select "Exit UNAUTHORIZED_TRANSPORT_REGISTRATION". When the SDLManager's managerDidDisconnect delegate method is called, restart the sdlManager.
Expected Behavior

The SDL app restarts.

Observed Behavior

The SDL app crashes due to going from state Stopped to state Connected.

The SDLManager is started and the SDLLifecycleManager transitions to state started. However, before the transition can complete, the SDLRPCServiceDidConnect notification comes in. Since the lifecycle state is still stopped, the app crashes in the sdl_rpcServiceDidConnect method because it attempts to transition to state connected, which is an invalid state transition.

OS & Version Information
  • iOS Version: n/a/
  • SDL iOS Version: 6.6 (branch develop)
  • Testing Against: sdl_core (tag 5.1.3) and sdl_hmi (branch develop).
@NicoleYarroch NicoleYarroch added bug A defect in the library manager-lifecycle Relating to the manager layer - lifecycle manager labels Jul 13, 2020
@joeljfischer joeljfischer mentioned this issue Jul 15, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library manager-lifecycle Relating to the manager layer - lifecycle manager
Projects
None yet
Development

No branches or pull requests

2 participants