AmericaSCORESBayArea / AmericaScores-CoachApp

React native based mobile app for Americas scores attendance management
5 stars 2 forks source link

(bug) iOS App crashes when selecting current Affiliation #521

Open CritiqalPete opened 1 month ago

CritiqalPete commented 1 month ago

Occurs on: https://github.com/AmericaSCORESBayArea/AmericaScores-CoachApp/commit/a59c1ef6aa778f12f461c3abdc619d7baa63179a

To Reproduce:

  1. Login with a Tester Profile
  2. Navigate to the Profile Settings
  3. Change the Home Screen to Teams
  4. Choose Change Affiliation from the right corner 3-dot menu
  5. Select ASBA Result: Crash.

We should protect for crashes like this even when uncommon. Would be nice if the selector shows which Affiliation is current (would be ASBA in this example already)

Callstack: (Partial) 2024-07-13 10:58:46.085931-0700 America Scores Attendance[62620:1054871] [native] Unhandled JS Exception: Error: Got unexpected undefined, js engine: hermes 2024-07-13 10:58:46.092730-0700 America Scores Attendance[62620:1054871] Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Error: Got unexpected undefined, js engine: hermes', reason: 'Unhandled JS Exception: Error: Got unexpected undefined, js engine: hermes, stack: nullthrows@27047:25 measureInWindow@26976:54 measureSelf@107029:46 onUIManagerMeasure@107020:19 invokeCallback@11481:22 anonymous@11281:33 guard@11398:14 invokeCallbackAndReturnFlushedQueue@11280:20 ' First throw call stack: ( 0 CoreFoundation 0x00000001123d7604 exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010af75a45 objc_exception_throw + 48 2 America Scores Attendance.debug.dyl 0x000000010c1808b0 RCTGetFatalHandler + 0 3 America Scores Attendance.debug.dyl 0x000000010c202c63 -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:] + 548 4 America Scores Attendance.debug.dyl 0x000000010c20366b -[RCTExceptionsManager reportException:] + 1706 5 CoreFoundation 0x00000001123ddfdc invoking_ + 140 6 CoreFoundation 0x00000001123db34f -[NSInvocation invoke] + 305 7 CoreFoundation 0x00000001123db5e2 -[NSInvocation invokeWithTarget:] + 70 8 America Scores Attendance.debug.dyl 0x000000010c1b8023 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 577 9 America Scores Attendance.debug.dyl 0x000000010c1ba817 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBALN_117SchedulingContextE + 595 10 America Scores Attendance.debug.dyl 0x000000010c1ba400 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 112 11 libdispatch.dylib 0x00000001115a2816 _dispatch_call_block_and_release + 12 12 libdispatch.dylib 0x00000001115a3a5b _dispatch_client_callout + 8 13 libdispatch.dylib 0x00000001115aa3bd _dispatch_lane_serial_drain + 855 14 libdispatch.dylib 0x00000001115ab0ed _dispatch_lane_invoke + 436 15 libdispatch.dylib 0x00000001115b7601 _dispatch_workloop_worker_thread + 907 16 libsystem_pthread.dylib 0x0000000115716c7f _pthread_wqthread + 326 17 libsystem_pthread.dylib 0x0000000115715bdb start_wqthread + 15 ) libc++abi: terminating with uncaught exception of type NSException