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

Crash in iOS Proxy Due to NSException on Corrupted Protocol Header #671

Closed
davidswi opened this issue Jul 30, 2017 · 1 comment
Closed
Labels
bug A defect in the library
Milestone

Comments

@davidswi
Copy link

Bug Report

During automated USB/BT connection switching with an engineering sample head unit, the following NSException in SDLProtocolHeader.m was triggered:
NSString *reason = [NSString stringWithFormat:@"The version of header that is being created is unknown: %@", @(version)];
@throw [NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo:@{ @"requestedVersion": @(version) }];

Reproduction Steps
  1. Set connect/disconnect duty cycle to 30s on programmable USB hub
  2. Pair and connect over BT an iOS device with one or more SDL apps installed
  3. Launch an SDL media app and an SDL non-media app from the HU
  4. Start connect/disconnect testing
Expected Behavior

The apps don't crash even when a disconnection occurs in the middle of SDL communication.

Observed Behavior

The above exception is thrown within an hour of automated tests starting.

OS & Version Information
  • iOS Version: 8.4.1
  • SDL iOS Version: 4.6RC2
  • Testing Against: Pre-production head unit
Test Case, Sample Code, and / or Example App

This should be reproducible with the SDL example app by the above methodology.

CTSScreensApp 7-30-17, 12-56 PM.crash.zip

@joeljfischer joeljfischer added the bug A defect in the library label Jul 31, 2017
@joeljfischer joeljfischer added this to the 4.7.0 milestone Aug 28, 2017
@joeljfischer
Copy link
Contributor

This should be fixed in v4.7.0

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
Projects
None yet
Development

No branches or pull requests

2 participants