You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When app is connected to a SDL accessory via a iAP connection, the app crashes when USB cord is pulled right after the icon shows up on the screen, but before the app launches on the SDL HMI. This bug is an edge case is is difficult to reproduce.
There are three issues that may be at play
Notifications are not being unsubscribed to properly in the SDLIAPTransport class. As a result, the app crashes
A NSException in the SDLStateMachine is force quitting the app because of invalid state transitions. The ones I have found so far are:
old state: Reconnecting, new state: SettingUpHMI
old state: Ready, new state: Started
old state: Shutdown, new state: StartupError
NSStreams in the SDLIAPTransport class are not being closed properly before dealloc is being called.
This is because the SDLStreamDelegate is being set to nil before the input and output streams are are closed and released.
Reproduction Steps
Use a iAP connection to connect the SDL Example app to a TDK.
Launch the app on SDL HMI.
Wait until the app has launched and the app has completed setup on the SDL HMI.
The app should be in the foreground, pull the USB cord.
The app should be in the foreground, reconnect the USB cord. As soon as the app-icon appears on the HMI, but before the app launches, pull the USB cord.
The app should crash. (It might take several tries for this to happen - repeat 4 and 5 as necessary)
Expected Behavior
The app should never crash
Observed Behavior
The app crashes
OS & Version Information
iOS Version: iOS 10 and 11
SDL iOS Version: 5.0.0 and 4.7
Testing Against: The SDL_Example app and a TDK (SYNC 3.0)
The text was updated successfully, but these errors were encountered:
Bug Report
When app is connected to a SDL accessory via a iAP connection, the app crashes when USB cord is pulled right after the icon shows up on the screen, but before the app launches on the SDL HMI. This bug is an edge case is is difficult to reproduce.
There are three issues that may be at play
SDLIAPTransport
class. As a result, the app crashesNSException
in theSDLStateMachine
is force quitting the app because of invalid state transitions. The ones I have found so far are:NSStream
s in theSDLIAPTransport
class are not being closed properly before dealloc is being called.SDLStreamDelegate
is being set tonil
before the input and output streams are are closed and released.Reproduction Steps
Expected Behavior
The app should never crash
Observed Behavior
The app crashes
OS & Version Information
The text was updated successfully, but these errors were encountered: