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 ConnectionHandler.connect() Method of nats.swift file resuming the app from the background or in Idle for random time #86

Open
MayankMintoak opened this issue Sep 27, 2024 · 0 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@MayankMintoak
Copy link

MayankMintoak commented Sep 27, 2024

Observed behavior

Description: The app crashes in the ConnectionHandler.connect() method of nats.swift when the app is either idle for an extended random period or has been moved to the background. Upon resuming or interacting with the app after this idle period, the app crashes, and the crash report points to the connect() method in nats.swift.

Crash Details:

File: nats.swift
Method: ConnectionHandler.connect()
Line: Occurs during reconnection attempt (as seen in the attached screenshot).

Observed Behavior:

The app crashes and navigates to the ConnectionHandler.connect() method in the nats.swift file.

ss

Expected behavior

The connection handler should gracefully handle reconnections or retries without crashing, even after idle or background sessions.

Server and client version

0.3.0

Host environment

No response

Steps to reproduce

Steps to Reproduce:

Open the app.
Let the app remain idle for an unspecified period of time (can vary randomly).
Alternatively, put the app in the background after it is connected.
After the idle period or when resuming the app from the background, try interacting with the app.
The app crashes, and the crash report indicates the ConnectionHandler.connect() method in nats.swift.

@MayankMintoak MayankMintoak added the defect Suspected defect such as a bug or regression label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

1 participant