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

App crashes when selecting vaccinator text in vaccine dispensing drop down #4040

Closed
kat-ms opened this issue May 11, 2021 · 8 comments
Closed
Labels
Bug: development Bug was found and believed to only be in development branches Priority: high
Projects
Milestone

Comments

@kat-ms
Copy link
Contributor

kat-ms commented May 11, 2021

Describe the bug

video.mp4

To reproduce

Steps to reproduce the behavior:

  1. Go to Vaccine Dispensing
  2. Select a patient and continue until taken to the actual dispensing page
  3. Click on the vaccination drop down (note, the arrow works, but clicking on the text will crash the app)
  4. See error

Expected behaviour

Selecting the text should do the same thing as selecting the arrow

Proposed Solution

🤷‍♀️ depends where the problem is, although I think it started after the RN upgrade 😹

Version and device info

  • App version: Current develop
  • Tablet model: Emulator/Lenovo (not sure it matters)
  • OS version: 8.1 but not convinced it matters

Additional context

I think it's this one on Bugsnag: https://app.bugsnag.com/sustainable-solutions-nz-ltd/msupply-mobile/errors/6083a4ee1d21390007185b45?filters[event.since][0]=30d&filters[error.status][0]=open

@kat-ms kat-ms added this to the 8.1.0 milestone May 11, 2021
@kat-ms kat-ms added this to To do in mobile via automation May 11, 2021
@kat-ms kat-ms added the Bug: development Bug was found and believed to only be in development branches label May 11, 2021
@kat-ms
Copy link
Contributor Author

kat-ms commented May 18, 2021

Crashing on React Native 0.64 has also been reported in the react-native-picker repo (have tried bumping the picker to the newer community version to see if that did anything). Had a read through the discussions, haven't found any super useful workarounds (tried the suggestion to set gesturesEnabled to false in screenOptions)

Still not sure how to fix without just downgrading to 0.63.4 yet, and the Picker itself works fine on the ADR form.
If SimpleTable is removed from the VaccineSelect page (just leaving an empty component inside AfterInteractions) the picker no longer causes a crash, so maybe there is some weird interaction going on between them behind the scenes? 🤷‍♀️

NB: If it's too problematic and there's upcoming urgent releases, could bring candidate commits to master where RN is still 0.63.4? (just a thought)

@josh-griffin
Copy link
Contributor

Interesting!

So, this is only on develop right? I don't think 8.1 is super urgent for anyone right now so I don't think it's too much to wait.

I think this commit will fix the issue.. they're just being very slow to cherry pick and cut a patch

@josh-griffin
Copy link
Contributor

BTW if you're a huge nerd like me, watching this repo: https://github.com/react-native-community/releases is helpful (sorry I haven't been keeping up with mobile bugsnags recently 😢 )

The patch discussion issues are useful as there are generally cherry pick requests for the major bugs pretty quick.

@kat-ms
Copy link
Contributor Author

kat-ms commented May 19, 2021

Interesting!

So, this is only on develop right? I don't think 8.1 is super urgent for anyone right now so I don't think it's too much to wait.

I think this commit will fix the issue.. they're just being very slow to cherry pick and cut a patch

Yeah it's just happening on develop. I think there may have been some patient history commits in develop that @mark-prins suggested might be needed soon-ish? If that's the case would it be better to put those into master (or a release branch off master) and release from there instead of this dodgy branch that I've destroyed? 😼

@josh-griffin
Copy link
Contributor

Oh right. Yeah I imagine picking the commits into master is probably a good idea

@josh-griffin
Copy link
Contributor

https://github.com/facebook/react-native/releases/tag/v0.64.2 its ouuuuut

@mark-prins
Copy link
Contributor

🎉 !! was just about to check - glad you did :)

kat-ms added a commit that referenced this issue Jun 4, 2021
…o-fix-crashing

#4040 Remove app crashing feature from vaccine dispensing
@kat-ms
Copy link
Contributor Author

kat-ms commented Jun 4, 2021

Closed by #4079 (yayy)

@kat-ms kat-ms closed this as completed Jun 4, 2021
mobile automation moved this from To do to Needs testing Jun 4, 2021
@josh-griffin josh-griffin moved this from Needs testing to Done in mobile Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: development Bug was found and believed to only be in development branches Priority: high
Projects
mobile
  
Done
Development

No branches or pull requests

3 participants