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 on Login if tap Sign in button several times #871

Closed
1 task
annadanchenko opened this issue Mar 8, 2017 · 2 comments · Fixed by #1129
Closed
1 task

Crash on Login if tap Sign in button several times #871

annadanchenko opened this issue Mar 8, 2017 · 2 comments · Fixed by #1129

Comments

@annadanchenko
Copy link

annadanchenko commented Mar 8, 2017

User Story

As a user, I want to login so that I can use the app.

Description

Type: Bug

Summary: When user tries to log in and taps Sign in button several times then app crashes

Expected behavior

Typed in password, tap on Sign in button, tap on Sign in button (as there is no feedback from the app and user might think that he missed the button first time) -> home screen is shown

Actual behavior

Typed in password, taped 2-3 times on Sign in button, after this Home screen is shown for a sec and then app crashed

Reproduction

  • Open Status
  • Tap on username to log in
  • In Password field type valid password for this user
  • Tap on button Sign in 2-3 times

Solution

Summary:

  • fix it

Additional Information

Logs

console1.txt
StatusIm-2017-03-08-170105.ips.beta.txt

@coyotespike
Copy link
Contributor

I was able to reproduce once, immediately after starting Simulator and on first login.

console.error: "Attempted to transition from state 'RESPONDER_ INACTIVE_ PRESS_ IN' 
to 'RESPONDER_ ACTIVE_ LONG_ PRESS_ IN', which is not supported. 
This is most likely due to 'Touchable.longPressDelayTimeout' not being cancelled."

After I logged in and then tried to switch users, I couldn't reproduce, even if I quit iOS Simulator and ran react-native run-ios again. I'll update if I figure out how to reproduce reliably.

Here is the best discussion of this issue: facebook/react-native#1693
TL;DR - it's probably an RN issue related to component timeouts.

@annadanchenko
Copy link
Author

Issue can be reproduced on 0.9.6 with same steps: Tap 2-3 times on Sign In button. App does not immediately crash. It takes several seconds, so user can open chats etc and then crash happens.
video: https://drive.google.com/open?id=0Bz3t9zSg1wb7OHIza3Q2YnN4dkU
logs:
20172404113738-consolelog.txt

StatusIm-2017-04-24-113813.crash.txt

@flexsurfer flexsurfer self-assigned this Apr 24, 2017
@annadanchenko annadanchenko changed the title Crash on Login if tap Connect button several times Crash on Login if tap Sign in button several times Apr 26, 2017
flexsurfer added a commit that referenced this issue May 1, 2017
rasom pushed a commit that referenced this issue May 1, 2017
gaga0128 added a commit to gaga0128/status_mobiles that referenced this issue Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment