AmericaSCORESBayArea / AmericaScores-CoachApp

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

(bug) App crashes when changing between team and session views in a month-wide calendar #357

Open CritiqalPete opened 1 year ago

CritiqalPete commented 1 year ago

2023-01-18 14:38:14.835100-0800 America Scores Attendance[9183:307122] [javascript] TypeError: null is not an object (evaluating 'o.props.sessions.sessions.find(function(s){return s.TeamSeasonId===t.params.teamSeasonId}).Sessions.find')

Repro Steps:

  1. Launch the app with a coach ID that has Bret Harte 2022-2023 team
  2. select Aug1-31 in the calendar
  3. select the team view
  4. select the session view again
  5. reapply the same Aug date range

iPhone Console shows: 846.126 memorystatus: killing_specific_process pid 602 [America Scores Attendance] (per-process-limit 100) 2148532KB - memorystatus_available_pages: 117861

Repro: 50% at least. see below for indication of memory overflow/issue:

Domain: IDEDebugSessionErrorDomain Code: 11 Failure Reason: Message from debugger: Terminated due to memory issue User Info: { DVTErrorCreationDateKey = "2023-01-18 23:23:25 +0000"; IDERunOperationFailingWorker = DBGLLDBLauncher; }

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone12,3"; "device_osBuild" = "16.1.1 (20B101)"; "device_platform" = "com.apple.platform.iphoneos"; "launchSession_schemeCommand" = Run; "launchSession_state" = 2; "launchSession_targetArch" = arm64; "operation_duration_ms" = 250698; "operation_errorCode" = 11; "operation_errorDomain" = IDEDebugSessionErrorDomain; "operation_errorWorker" = DBGLLDBLauncher; "operation_name" = IDEiPhoneRunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 5; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphoneos"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 0; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 0; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_runnable_type" = 2; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphoneos16.2"; "sdk_osVersion" = "16.2"; "sdk_variant" = iphoneos; }

System Information

macOS Version 12.6 (Build 21G115) Xcode 14.2 (21534) (Build 14C18) Timestamp: 2023-01-18T15:23:25-08:00