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

Example apps resetConnection crashes app #1237

Closed
NicoleYarroch opened this issue Apr 15, 2019 · 0 comments
Closed

Example apps resetConnection crashes app #1237

NicoleYarroch opened this issue Apr 15, 2019 · 0 comments
Assignees
Labels
bug A defect in the library
Projects
Milestone

Comments

@NicoleYarroch
Copy link
Contributor

Bug Report

If starting the sdlManager fails with an error, the example apps call the resetConnection method which attempts to stop the manager. This crashes the app.

This should be fixed in the Swift and the Obj-C example apps.

Reproduction Steps
  1. Connect the example app to a TDK
  2. Pull the cord before the app registers.

There was an error while starting up: Optional(Error Domain=com.sdl.lifecyclemanager.error Code=-2 "Could not find a connection" UserInfo={NSLocalizedRecoverySuggestion=Have you tried turning it off and on again?, NSLocalizedDescription=Could not find a connection, NSLocalizedFailureReason=The SDL library could not find a current connection to an SDL hardware device})

Expected Behavior

The app does not crash

Observed Behavior

The app crashes.

OS & Version Information
  • iOS Version: 12.1.2
  • SDL iOS Version: 6.2
  • Testing Against: SYNC 3.0
@NicoleYarroch NicoleYarroch added the bug A defect in the library label Apr 15, 2019
@NicoleYarroch NicoleYarroch added this to To do in v6.3 via automation Apr 26, 2019
v6.3 automation moved this from To do to Done May 3, 2019
@joeljfischer joeljfischer added this to the 6.3.0 milestone Jun 24, 2019
@joeljfischer joeljfischer mentioned this issue Jun 24, 2019
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
Projects
No open projects
v6.3
  
Done
Development

No branches or pull requests

2 participants